Hi all! I´m using Jboss4.0.2 and i still get an errorcan you help how can i configure my build.xml. I followed what a maven list fellow said about packing with maven and deploy with ant, and just worry how maven works with ant. I get that, but i have a problem in my build.xml, i saw many examples and i couldn´t success yet... Can anyone help me saying what´s wrong to my .xml´s ???? Here are my pom.xml and my build.xml
pom.xml ... <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>compile</phase> <configuration> <tasks> <echo message="Efetuando o deploy..."/> <ant antfile="build.xml" target="deploy" inheritAll="true"/> <echo message="Deploy complete"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> .... my build.xml <project name="buildDeploy"> <target name="deploy-live"> <property name="live.server" value="[EMAIL PROTECTED]"/> <property name="live.jboss" value="/opt/jboss-4.0.1sp1 /server/default/deploy"/> <property name="live.ppa" value="C:/Projects/App/ear/target/EAR-1.0.ear "/> <exec dir="." executable="scp"> <arg line="${live.ppa} ${live.server}:${live.jboss}/PPAEAR-1.0.ear" /> </exec> </target> <target name="deploy" depends="deploy-live" /> </project> The Exception i received: ... [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] Efetuando o deploy... deploy-live: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: C:\Projetos\ReportPronim4\ear\build.xml:6: Execute failed: java.io.IOException: CreateProcess: scp scp C:/Projetos/ReportPronim4/ear/target/PPAEAR-1.0.earcetil @ptplinux:/opt/jboss-4.0.1sp1/server/default/deploy/PPAEAR-1.0.ear error=2 [INFO] ------------------------------------------------------------------------ ... what Am i doing wrong???? Regards, Leo