I have a problem building my project with maven.I have to create a war file
containing a ejb jar and a war.
i have separate pom.xml for ejb project and a web project..
structure should be like this....
individually i am able to create ejb jar(ejb project) and war (web project).
but i want to do mvn install only on source project and it would bild the jar
(ejb project)and war(web project) and then(source project) create a ear in one
go.can any one suggest what modification i have to do on pom.xml of source project
for doing this and also web project has dependency on ejb project .Can any one please give me sample
example of source pom.how should it looks like
The pom.xml in masterproject calls the three subprojects. The pom.xml in the subprojects all reference the mastterproject as the parent project. When I run the masterproject pom.xml, it builds everything.
You have a copy of Better Builds with Maven, right? Look in chapter 4, Building J2EE Applications, specifically section 4.3, Organizing the DayTrader Directory Structure. Or if you have Maven - The Definitive Guide, see chapter 6, A Multimodule Project; it's parent pom.xml is more complete.
Joined: Jan 04, 2010
I have another question,How can i inclue or exclude .java (source)file in the ejb jar or war file.I want to customize the source folder structure.