Java Reference
In-Depth Information
Project Name
Description
Package Name
com.apress.oms.business.
OMSBusinessImpl
Contains the actual business
impl
logic implementations
com.apress.oms.persistence
OMSPersistence
Contains the data access objects
com.apress.oms.remoting
OMSBusinessRemote
Contains the components required
to export the business services as
remote objects
com.apress.oms.web.
controller
OMSWeb
Contains the presentation
The last two projects in Table 7-2 should be created as Maven 2 web projects. The
steps to create these projects are the same except the archetype selection. To set up web
projects with Maven, you will need to select
maven-archetype-webapp
on the Select an
Archetype screen.
Adding Dependencies
So far, all the Maven projects have been set up independently. But in order for these proj-
ects to compile and produce the final build, you will need to add dependencies amongst
projects as well other frameworks. Table 7-3 lists the dependencies.
Table 7-3.
Maven 2 Project Dependencies
Project
Dependency
OMSJavabean
None
OMSBusinessAPI
OMSJavabean
OMSBusinessImpl
OMSBusinessAPI, OMSJavabean
OMSBusinessRemote
OMSBusinessAPI, OMSBusinessImpl, OMSJavabean, Spring
Framework
OMSPersistence
OMSJavabean, Spring Framework
OMSWeb
OMSJavabean, OMSBusinessAPI, Spring Framework (2.5.4), JSTL 1.1.2
I will show you the steps that need to be followed to add Maven project dependen-
cies in Blazon ezJEE for the OMSWeb project. You can follow the same steps to add
dependencies for other projects. To add dependencies, you must first build all the proj-
ects in your workspace using Maven. You can do this by selecting the individual
pom.xml
file and running the Maven install goal, as shown in Figure 7-11.






