Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy a specific child project with cargo:start using maven

 
Nikku Gupta
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi experts,

I have a developed application and I am just trying to make the build process easy. The POM file for parent looks like this:



But when I run 'mvn cargo:start', tomcat instance runs fine but none of the child apps get deployed. Is there a way that I can make my first child application (www) (which generates a war file called www-webapp-1.2.0.war - (group id - com.shc.obu.ca.osol)) auto deployed?

Thanks in advance
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nikku and welcome to Javaranch! Could you go back to your post and UseCodeTags, it'll help us read your problem!

Now to the question, does the command you're running really deploy your artifact...?
 
Nikku Gupta
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martijn Verburg wrote:Hi Nikku and welcome to Javaranch! Could you go back to your post and UseCodeTags, it'll help us read your problem!

Now to the question, does the command you're running really deploy your artifact...?


Hi Martin,

When I run mvn install, it builds the child applications and installs them. Basically copies the war file (say for profile 'www') at the following location:


Thanks.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mvn install, installs the war into your local repository, I think you need to use a different maven command to deploy to a cargo started app server...
 
Nikku Gupta
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martijn Verburg wrote:mvn install, installs the war into your local repository, I think you need to use a different maven command to deploy to a cargo started app server...


Yeah.. Normally cargo:start does that. It copies the base project war to corgo, deploys it and run it. But here there is no Parent war and it's not doing so for child profiles. Thats what I am trying to figure out as how to do that.

Thanks.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah OK< I see your problem now, I'll see if I can find anything to help out (but I'm not a user of profiles with cargo, so I might not spot anything).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic