> -----Original Message-----
> From: Leo L [mailto:[EMAIL PROTECTED]
> Sent: jeudi 1 juin 2006 15:26
> To: Maven Users List
> Subject: Re: [M2] Deploy success with ant, but it can improve!
> 
> Yeah, was my first try, but i didn´t success.
> My deploy is a remote deploy for a app. server jboss4.
> For local deploy i used cargo´s plugins, works fine and it´s simple, easy
> to
> use.
> But, my objective is a remote deploy!
> I had so many difficulties using cargo´s plugin for a remote deploy,  that
> i
> gave up.

A pity... Remote deployment are actually the same as local deployments
except that you need to specify a username/password. The problem lies with
jboss. Cargo is using the Jboss JMX deployer which doesn't deploy archives
remotely. They need to exist in the local filesystem of the remote server to
work. If someone knows of a better jboss deployer please let us know on the
cargo project so that we can update our code and use that deployer instead.

Leo, if your problems were different than what is listed above, we'd love to
hear from you so that we can improve Cargo.

Thanks
-Vincent

> 2006/6/1, Geoffrey De Smet <[EMAIL PROTECTED]>:
> >
> > 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
> > >
> >
> > --
> > With kind regards,
> > Geoffrey De Smet
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >






___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

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

Reply via email to