kaizokun
kaizokun

Reputation: 1044

maven project and glassfish provided dependencies

I have a J2ee project that uses technologies such as Jsf, EJB, Persistence API etc. Most of these dependencies are provided with glassfish 5 into the modules directory. But how am I suppose to know which versions I need for these modules. for example:

<dependency>
            <groupId>javax.ejb</groupId>
            <artifactId>javax.ejb-api</artifactId>
            <version>LATEST</version>
            <scope>provided</scope>
</dependency>

for now I look up in the maven central repository for this information: GroupId, ArtifactID, Latest Version. But there is a simpler way to do that?

Upvotes: 1

Views: 1875

Answers (1)

mexes_s
mexes_s

Reputation: 459

When working with Java EE and application servers, your pom.xml should contain only this dependency java-ee-8.0 (for glassfish 5)

Upvotes: 2

Related Questions