Search code examples
jakarta-eeintellij-ideamaven-3glassfish-5

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?


Solution

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