I want a Java JEE6 project built with maven, and I want it standard
So, I put this in my pom.xml:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
A project like this, it is supposed to run in every JEE6 container compatible (jboss, geronimo, glashfish, etc.)
Then, why this jboss dependency exists?
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>3.0.2.Final</version>
<scope>provided</scope>
</dependency>
If I use it, am I tied to jboss so I can only use this server with this application?
Is it not preferable to always use the standard javaee-api?
Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…