Java Reference
In-Depth Information
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>3.0.2.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
This dependency will import a project object module that contains a reference to all
the libraries that are part of the JBoss Enterprise stack—its most evident advant-
age is that you will not need to specify the single dependency version but just state
which JBoss Enterprise stack version you are going to use (in our example, it is
3.0.2.Final ).
Now for the project dependencies. Since we are going to use the EJB 3.1 API with
annotations, we would need the Common Annotations API (JSR-250) and the EJB
3.1 API dependencies ; so, add the following block just after the BOM section:
<dependencies>
<dependency>
<groupId>org.jboss.spec.javax.annotation</groupId>
<artifactId>jboss-annotations-api_1.1_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.ejb</groupId>
Search WWH ::




Custom Search