• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Continuous integration - Bamboo, Maven

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And here is my pom.xml.


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic