aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes How to deploy a specific child project with cargo:start using maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to deploy a specific child project with cargo:start using maven" Watch "How to deploy a specific child project with cargo:start using maven" New topic
Author

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

Nikku Gupta
Greenhorn

Joined: Jul 06, 2010
Posts: 3
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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...?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Nikku Gupta
Greenhorn

Joined: Jul 06, 2010
Posts: 3
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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

Joined: Jul 06, 2010
Posts: 3
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

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
 
subject: How to deploy a specific child project with cargo:start using maven
 
Similar Threads
maven release build error
Problem with the "mvn test" command missing EJB client jar artifact
Unable to create one single jar file in maven with dependencies included inside
Maven: Trouble loading a dependency from a local repository
Richfaces + Spring + Maven Setup help