Java Reference
In-Depth Information
As you can see, the project has been organized as a standard Maven project under
src/main/java , where we will add our source code, src/main/resources , for
the configuration (containing a bare-bones ejb-jar.xml configuration file), and for
src/test/java , which can be used to host the test classes. At the moment, we
will concentrate on the main file, pom.xml , which needs to be aware of the JBoss
enterprise dependencies.
Configuring the project object module (pom.xml)
You need to resist just a few more minutes before digging into the code ex-
amples—configuring Maven's pom.xml is your first priority, otherwise you will not
even be able to compile a single class for your project.
The pom.xml file is quite verbose, so we will illustrate here just the core elements
that are required to understand our example, leaving the full listing to the code ex-
ample package of this topic.
The first thing we are going to add, just after the properties section, is a reference
to JBoss' Bill of Material ( BOM ):
Search WWH ::




Custom Search