Meaningless Drivel is fun!*
The moose likes Ant, Maven and Other Build Tools and the fly likes Continuous integration - Bamboo, Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Continuous integration - Bamboo, Maven" Watch "Continuous integration - Bamboo, Maven" New topic
Author

Continuous integration - Bamboo, Maven

Girish Vasmatkar
Ranch Hand

Joined: Apr 24, 2008
Posts: 199
Hi,


I am writing pom.xml to be used with Bamboo. My pom.xml will actually generate an EAR file, which have a dependency for a war module.

If I don't have the web module (artifactId) installed, the pom.xml for EAR will report an error.
My question is - How can I ask pom.xml to first build the war artifactId and then based on that artifactId, generate the EAR.

My problem's solution is something eclipse already does provide. I create an Enterprise project, have a web project as it's dependency, and when I use export as EAR, eclipse does something (that's what I want), and web project is build, WAR is generated and an EAR is generated with the web module in it.

The relation of Bamboo is here that, the bamboo is gonna use that same pom.xml file, and it has to know that I have a wart module and an ear module, and that war module must be build first and then included in the ear.

Best,
Girish

Girish Vasmatkar
Ranch Hand

Joined: Apr 24, 2008
Posts: 199
And here is my pom.xml.


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

I have not used Bamboo, but there should be a way in Bamboo to set dependencies among projects. What you really want is that whenever you modify something in the WAR, that Bamboo first builds the WAR and then builds the EAR. Thus the EAR project depends on the WAR project. I know that in Hudson this kind of dependency among Maven projects is picked up automatically.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Continuous integration - Bamboo, Maven
 
Similar Threads
maven ear plugin question
Problem with the "mvn test" command missing EJB client jar artifact
Ear Building in Maven
Jax-WS Webservice leads to ServletException
How to change jetty binding port number in maven.