Java Reference
In-Depth Information
folders, a new directory named webapp that will host the web application
views.
Adding the required dependencies
In order to compile and run the project, our Maven's pom.xml now requires a more
complex set of libraries, starting from Java Enterprise CDI API:
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
</dependency>
Next, we need the Common Annotations API (JSR-250) that we have used to annot-
ate our beans:
<dependency>
<groupId>
org.jboss.spec.javax.annotation
</groupId>
<artifactId>jboss-annotations-api_1.1_spec</artifactId>
<scope>provided</scope>
</dependency>
Since our project uses JBoss logging API as well to output information, you also
need to include:
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>RELEASE</version>
</dependency>
Next in the list is the EJB API, which we are still using in this example:
Search WWH ::




Custom Search