(I sent the below to the cargo users list, but haven't gotten a response in several days, so I'm going to be gauche and send it to struts; now that Struts2 uses Maven2, some Struts folks must be dealing with this [*cough* Wendy :-) ] If anyone has advice, it will be appreciated... )
I'm exploring the possibility of moving my webapp development team from using Maven1 to Maven2 and one of the major practices we've developed has to do with deploying our work in progress to a locally running Tomcat instance. In the interest of not changing too many things at once, I'm hoping to figure out how to use Cargo to do what we've previously had great success achieving with the CodeCzar plugin. I have found examples from various folks online indicating success with this, but I am hitting a roadblock when I try to run "exploded". Everything seems to be fairly functional (if not quite straightforward!) when I run from the WAR, but when I follow instructions from this post (http://www.nabble.com/-mvn----reloadable-webapps-t2762768.html#a7715823 ) and add a <location> element to my deployable, I get the following FileNotFound error java.io.FileNotFoundException: /Users/germuska/Development/myriad/webapp-customization/target/webapp- customization-1.0-SNAPSHOT (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatDeployer.deploy( AbstractTomcatDeployer.java:115) When I copy the not-found path and execute the following, I get something: % ls -lad /Users/germuska/Development/myriad/webapp-customization/target/webapp- customization-1.0-SNAPSHOT drwxr-xr-x 20 germuska admin 680 Jan 8 13:29 /Users/germuska/Development/myriad/webapp-customization/target/webapp- customization-1.0-SNAPSHOT Any suggestions on how to dig more deeply on this? Below is the cargo section of my effective POM. One thing which seems a little odd is that the <location> element is only partially interpolated, although as seen in the error message, it ends up fully interpolated by that point. So I don't know if that is of any import or not. <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>tomcat5x</containerId> <home>/opt/tomcat</home> <type>remote</type> </container> <configuration> <type>runtime</type> <properties> <cargo.remote.username>*****</cargo.remote.username> <cargo.remote.password>*****</cargo.remote.password> <cargo.servlet.port>9000</cargo.servlet.port> </properties> </configuration> <deployer> <type>remote</type> <deployables> <deployable> <location>${project.build.directory}/webapp- customization-1.0-SNAPSHOT</location> <properties> <context>customization</context> </properties> </deployable> </deployables> </deployer> </configuration> </plugin> Thanks in advance... Joe -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "The truth is that we learned from João forever to be out of tune." -- Caetano Veloso