I would recommend using the Tomcat Maven Plugin instead of Cargo if you want to deploy to a running Tomcat (vs. testing against an installed one).
http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html You will need to make sure you have credentials setup properly for the Manager application. http://mojo.codehaus.org/tomcat-maven-plugin/configuration.html Matt On 10/8/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry if this is a bit of a Maven question, but since Maven's a fundamental > part of AppFuse 2.0, I thought this is probably the best place to > ask... > > I have Tomat 5.5 running on my development machine and I want to deploy my > application to that. > > I've followed the FAQ on the AppFuse site: > > http://appfuse.org/display/APF/FAQ#FAQ-useexistingtomcat > > From there I followed the link to the Codehaus site: > > http://cargo.codehaus.org/Deploying+to+a+running+container > > At the top of that page, it describes using maven:deploy to deploy to a > running container. > > My main problem is that most of the examples on the Codehaus page are quite > terse and use generic values for their elements, which > makes them difficult to understand for the Maven novice. They also seem to > be slanted towards deploying an ear type app rather than a > war type app (which mine is). > > Anyway, I believe I've got a workable setup for my "deployer" elements, but > now I'm getting this dependency error: > "artifact [blah:blah:blah] is not a dependency of the project" (the "blah" > bits replace valid groupId, artifactId and Version values). > > Has anyone else been able to use the maven:deploy goal to successfully deploy > their app to an existing Tomcat server, or am I destined > to do a manual war file copy each time? > > Cheers, > > Rob Hills > Waikiki, Western Australia > Mobile +61 (412) 904-357 > Fax: +61 (8) 9529-2137 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
