I also suggested that to him yesterday, but I guess he wants to use Ant for 
that...

Roland



On Thursday 01 June 2006 14:53, Geoffrey De Smet wrote:
> Have you tried cargo.codehaus.org 's maven 2 plugin?
>
> Leo L wrote:
> > Hi!
> >
> > I obtained success to deploy my App. It´s a remote deploy that i use
> > maven to packaging and
> > ant to copy my .ear file to a remote machine. Works fine, but separately.
> > First i run "mvn install" from command line, then i run "ant deploy".
> > I tried to run all with maven, using maven-antrun-plugin and calling my
> > ant´s build.xml inside my pom, but not success. This because my target on
> > build.xml needs the file jsch.jar in classpath and is there, it´s
> > configured
> > right, but when i run maven, seemed that maven don´t recognized the
> > system classpath configuration and don´t find the jsch.jar file.
> > When i run only the ant command at command line "ant deploy" works fine,
> > ant
> > get the classpath configuration.
> >
> > I wondering if inside my pom.xml i can configure the classpath for that
> > jsch.jar, so my ant´s script can run with maven.
> >
> > Here is a part of my pom.xml:
> >
> > ...
> >  <plugin>
> >        <artifactId>maven-antrun-plugin</artifactId>
> >        <executions>
> >          <execution>
> >            <phase>install</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" basedir=".">
> >  <target name="deploy">
> > <scp file="myFile.ear" todir="user:[EMAIL PROTECTED]:/myJboss/deploy"
> > knownhosts="${user.home}/ssh/known_hosts"/>
> >  </target>
> > </project>
> >
> >
> > I got what i needed, but it can improve!!! :)
> >
> > Regards,
> >
> > Leo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to