Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic