[ http://jira.codehaus.org/browse/MPJBOSS-22?page=comments#action_41876 ]
Geoffrey commented on MPJBOSS-22: --------------------------------- That solution doesn't work, currently I use the following quick and dirty solution: <goal name="jboss:remote-deploy-warfile"> <maven:get var="warBuildDir" plugin="maven-war-plugin" property="maven.war.build.dir"/> <maven:get var="warFinalName" plugin="maven-war-plugin" property="maven.war.final.name"/> <ant:echo>Deploying ${warFinalName}...</ant:echo> <!-- Maven 1.0.2 uses ant 1.5 while ant:scp requires ant 1.6+ --> <!-- <ant:scp file="${warBuildDir}/${warFinalName}"--> <!-- todir="${maven.jboss.host.username}:[EMAIL PROTECTED]:${maven.jboss.home}/${maven.jboss.deploy.dir}"/>--> <ant:exec dir="." executable="scp"> <ant:arg line="'${warBuildDir}/${warFinalName}' [EMAIL PROTECTED]:${maven.jboss.home}/${maven.jboss.deploy.dir}/${warFinalName}"/> </ant:exec> </goal> > remote-deploy-warfile > --------------------- > > Key: MPJBOSS-22 > URL: http://jira.codehaus.org/browse/MPJBOSS-22 > Project: maven-jboss-plugin > Type: New Feature > Reporter: Geoffrey > Priority: Minor > > > The cruisecontrol or continium machine needs to be able to remote deploy the > war. > Currently this doesn't work because the deploy-warfile gives an URL to a > local file, which the remote machine will try to resolve local to itself. > A solution: > <maven:get var="warBuildDir" plugin="maven-war-plugin" > property="maven.war.build.dir"/> > <maven:get var="warFinalName" plugin="maven-war-plugin" > property="maven.war.final.name"/> > <ant:scp file="${warBuildDir}/${warFinalName}" > todir="${jboss.remote.deploy.username}:[EMAIL > PROTECTED]:${jboss.remote.deploy.dir}"/> > <jmx:deploy > jmx.deploy.file='${javacareers.remote.deploy.dir}/${warFinalName}'/> > And add a dependency on jscp if needed -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]