You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wayne Fay <wa...@gmail.com> on 2008/11/07 09:35:28 UTC

Re: Problem with SSHEXEC Ant Task

> I downloaded the JAR file (jsch.jar) into my ant\lib...What other JAR
> files are needed? Any ideas?

Maven does not know about nor care about your Ant installation. The
only jar files it cares about are those which you have specified in
the pom file as dependencies or plugins, and nearly all of them are
located in your repo cache.

You probably need to add the jsch artifact as a dependency to the
maven-antrun-plugin in your pom.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with SSHEXEC Ant Task

Posted by "L. J." <ap...@gmail.com>.
Try specify version number 1.3 for <artifactId>maven-antrun-
plugin</artifactId>

Thanks.

LJ

On Fri, Nov 7, 2008 at 12:51 PM, Durbha, Praveen (GE Healthcare) <
Praveen.Durbha@ge.com> wrote:

> Kuno/Wayne,
>
> I am able to get it to work using 1.6.5 only problem is, like L.J
> mentioned, any <echo> statements after the command is executed are not
> executed.
>
> <sshexec host="gbi-test" username="Administrator" password="Gbi123Test123"
> trust="true" command="\dev\install.exe -i silent" failonerror="true"
> outputproperty="installprogress"/>
> <echo message="Commencing installation ..."/>
> <echo message="${installprogress}"/>
>
> However, the build fails when the dependency is changed to 1.7.1 since the
> ant jars in the maven repository haven't been upgarded to this
> version..correct?
>
> Thanks!
>
> -----Original Message-----
> From: L. J. [mailto:apache.maillist@gmail.com]
> Sent: Friday, November 07, 2008 11:37 AM
> To: Maven Users List
> Subject: Re: Problem with SSHEXEC Ant Task
>
> You should use 1.7.1 rather than 1.6.5. There was a bug in 1.6.x that
> stdout after sshexec was executed will disappear.
>
> LJ
>
> On Fri, Nov 7, 2008 at 1:15 AM, Baeriswyl Kuno - Extern (IT-BA-MV)
> <ku...@sbb.ch> wrote:
>
> > hello, had the same problem recently:
> >
> >                        <plugin>
> >
>  <artifactId>maven-antrun-plugin</artifactId>
> >                                <dependencies>
> >                                        <dependency>
> >                                                <groupId>ant</groupId>
> >
> >  <artifactId>ant-jsch</artifactId>
> >                                                <version>1.6.5</version>
> >                                        </dependency>
> >                                        <dependency>
> >                                                <groupId>jsch</groupId>
> >
> >  <artifactId>jsch</artifactId>
> >                                                <version>0.1.29</version>
> >                                        </dependency>
> >                                </dependencies>
> >                        </plugin>
> > Kuno
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Wayne Fay [mailto:waynefay@gmail.com]
> > Gesendet: Freitag, 7. November 2008 09:35
> > An: Maven Users List
> > Betreff: Re: Problem with SSHEXEC Ant Task
> >
> >
> > > I downloaded the JAR file (jsch.jar) into my ant\lib...What other
> > > JAR files are needed? Any ideas?
> >
> > Maven does not know about nor care about your Ant installation. The
> > only jar files it cares about are those which you have specified in
> > the pom file as dependencies or plugins, and nearly all of them are
> > located in your repo cache.
> >
> > You probably need to add the jsch artifact as a dependency to the
> > maven-antrun-plugin in your pom.
> >
> > Wayne
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Problem with SSHEXEC Ant Task

Posted by "Durbha, Praveen (GE Healthcare)" <Pr...@ge.com>.
Kuno/Wayne,

I am able to get it to work using 1.6.5 only problem is, like L.J mentioned, any <echo> statements after the command is executed are not executed. 

<sshexec host="gbi-test" username="Administrator" password="Gbi123Test123" trust="true" command="\dev\install.exe -i silent" failonerror="true" outputproperty="installprogress"/>
<echo message="Commencing installation ..."/>
<echo message="${installprogress}"/> 

However, the build fails when the dependency is changed to 1.7.1 since the ant jars in the maven repository haven't been upgarded to this version..correct?

Thanks!

-----Original Message-----
From: L. J. [mailto:apache.maillist@gmail.com] 
Sent: Friday, November 07, 2008 11:37 AM
To: Maven Users List
Subject: Re: Problem with SSHEXEC Ant Task

You should use 1.7.1 rather than 1.6.5. There was a bug in 1.6.x that stdout after sshexec was executed will disappear.

LJ

On Fri, Nov 7, 2008 at 1:15 AM, Baeriswyl Kuno - Extern (IT-BA-MV) <ku...@sbb.ch> wrote:

> hello, had the same problem recently:
>
>                        <plugin>
>                                <artifactId>maven-antrun-plugin</artifactId>
>                                <dependencies>
>                                        <dependency>
>                                                <groupId>ant</groupId>
>
>  <artifactId>ant-jsch</artifactId>
>                                                <version>1.6.5</version>
>                                        </dependency>
>                                        <dependency>
>                                                <groupId>jsch</groupId>
>
>  <artifactId>jsch</artifactId>
>                                                <version>0.1.29</version>
>                                        </dependency>
>                                </dependencies>
>                        </plugin>
> Kuno
>
> -----Ursprüngliche Nachricht-----
> Von: Wayne Fay [mailto:waynefay@gmail.com]
> Gesendet: Freitag, 7. November 2008 09:35
> An: Maven Users List
> Betreff: Re: Problem with SSHEXEC Ant Task
>
>
> > I downloaded the JAR file (jsch.jar) into my ant\lib...What other 
> > JAR files are needed? Any ideas?
>
> Maven does not know about nor care about your Ant installation. The 
> only jar files it cares about are those which you have specified in 
> the pom file as dependencies or plugins, and nearly all of them are 
> located in your repo cache.
>
> You probably need to add the jsch artifact as a dependency to the 
> maven-antrun-plugin in your pom.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with SSHEXEC Ant Task

Posted by "L. J." <ap...@gmail.com>.
You should use 1.7.1 rather than 1.6.5. There was a bug in 1.6.x that stdout
after sshexec was executed will disappear.

LJ

On Fri, Nov 7, 2008 at 1:15 AM, Baeriswyl Kuno - Extern (IT-BA-MV)
<ku...@sbb.ch> wrote:

> hello, had the same problem recently:
>
>                        <plugin>
>                                <artifactId>maven-antrun-plugin</artifactId>
>                                <dependencies>
>                                        <dependency>
>                                                <groupId>ant</groupId>
>
>  <artifactId>ant-jsch</artifactId>
>                                                <version>1.6.5</version>
>                                        </dependency>
>                                        <dependency>
>                                                <groupId>jsch</groupId>
>
>  <artifactId>jsch</artifactId>
>                                                <version>0.1.29</version>
>                                        </dependency>
>                                </dependencies>
>                        </plugin>
> Kuno
>
> -----Ursprüngliche Nachricht-----
> Von: Wayne Fay [mailto:waynefay@gmail.com]
> Gesendet: Freitag, 7. November 2008 09:35
> An: Maven Users List
> Betreff: Re: Problem with SSHEXEC Ant Task
>
>
> > I downloaded the JAR file (jsch.jar) into my ant\lib...What other JAR
> > files are needed? Any ideas?
>
> Maven does not know about nor care about your Ant installation. The only
> jar files it cares about are those which you have specified in the pom file
> as dependencies or plugins, and nearly all of them are located in your repo
> cache.
>
> You probably need to add the jsch artifact as a dependency to the
> maven-antrun-plugin in your pom.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

AW: Problem with SSHEXEC Ant Task

Posted by "Baeriswyl Kuno - Extern (IT-BA-MV)" <ku...@sbb.ch>.
hello, had the same problem recently:

                        <plugin>
                                <artifactId>maven-antrun-plugin</artifactId>
                                <dependencies>
                                        <dependency>
                                                <groupId>ant</groupId>
                                                <artifactId>ant-jsch</artifactId>
                                                <version>1.6.5</version>
                                        </dependency>
                                        <dependency>
                                                <groupId>jsch</groupId>
                                                <artifactId>jsch</artifactId>
                                                <version>0.1.29</version>
                                        </dependency>
                                </dependencies>
                        </plugin>
Kuno

-----Ursprüngliche Nachricht-----
Von: Wayne Fay [mailto:waynefay@gmail.com]
Gesendet: Freitag, 7. November 2008 09:35
An: Maven Users List
Betreff: Re: Problem with SSHEXEC Ant Task


> I downloaded the JAR file (jsch.jar) into my ant\lib...What other JAR
> files are needed? Any ideas?

Maven does not know about nor care about your Ant installation. The only jar files it cares about are those which you have specified in the pom file as dependencies or plugins, and nearly all of them are located in your repo cache.

You probably need to add the jsch artifact as a dependency to the maven-antrun-plugin in your pom.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org