Java Reference
In-Depth Information
<dependency>
<groupId>org.jboss.spec.javax.ejb</groupId>
<artifactId>jboss-ejb-api_3.1_spec</artifactId>
<scope>provided</scope>
</dependency>
Note
Remember that in order to use the JBoss Java EE 6 stack, you have to specify
the jboss-javaee-6.0 Bill of Materials ( BOM ) as shown in the earlier
chapter, otherwise Maven will complain that dependencies are missing the ap-
propriate library version.
In order to let Maven publish the application for us, we will include jboss-as-
maven-plugin as well, as we did in the last chapter, taking care to specify the cor-
rect filename extension ( .war ):
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>${version.jboss.maven.plugin}</version>
<configuration>
<filename>${project.build.finalName}.war</filename>
</configuration>
</plugin>
</plugins>
</build>
Search WWH ::




Custom Search