Hi guys,

hopefully I have just missed some documentation on this, but hoping you can
help me anyway.

I am using maven 2.0.9, and gmaven-mojo 1.0-rc-2.  I am trying to use the
sshexec optional ant task.  I can configure this with the necessary jars no
problem for native ant, tested successfully, but am unsure of how to make
the optional ant jar and the jsch jar available to maven and in particular
the gmaven mojo.

I have tried a dependencies block within my plugin pom.

<dependencies>
<dependency>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-mojo</artifactId>
<version>1.0-rc-2</version>
</dependency>
</dependencies>
    
<build>
<plugins>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<dependencies> 
<dependency> 
<groupId>org.apache.ant</groupId> 
<artifactId>ant-jsch</artifactId> 
<version>1.7.0</version> 
</dependency> 
<dependency> 
<groupId>com.jcraft</groupId> 
<artifactId>jsch</artifactId> 
<version>0.1.38</version> 
</dependency> 
</dependencies>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

I always get an error saying the optional ant SSHExec task can not be found
when calling the goal on my mojo.

Thanks in advance for your help,

regards,

Ross

 
-- 
View this message in context: 
http://www.nabble.com/problems-making-optional-ant-task-available-to-gmaven-mojo-tp17650490p17650490.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to