Java Reference
In-Depth Information
Complete the wizard by clicking on
Finish
and you will return to your Eclipse project
view.
Adding Maven configuration
Now that your Maven skeleton is set up, we will include the required dependencies
so that Eclipse will be able to compile your classes as you code them.
The first thing we will add is the Bill of Materials, which includes both the
jboss-
javaee-6.0-with-tools
and
jboss-javaee-6.0-with-hibernate
artifacts
so that Maven will be able to pick up the right enterprise stack:
<dependency>
<groupId>org.jboss.bom</groupId>
<artifactId>jboss-javaee-6.0-with-tools</artifactId>
<version>${version.jboss.bom}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.jboss.bom</groupId>
<artifactId>jboss-javaee-6.0-with-hibernate</artifactId>
<version>${version.jboss.bom}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Next, you will need the following dependencies to be added to your project, starting
from the hibernates persistence API.
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>