tomatchili
11 years agoFrequent Visitor
How to configure path for groovy extra jar files when running tests from maven
I have added sftp functionality to a groovy script in SoapUI. This is the header of the script:
import groovy.grape.Grape; Grape.grab(group:"com.jcraft", module:"jsch", version:"0.1.51") Grape.grab(group:"ant", module:"ant-jsch", version:"1.6.5")
to make it work in the SOAP UI gui I had to add some jar files (ivy-2.4.0.jar, jsch-0.1.51.jar, ant-jsch-1.6.5.jar, ant-1.7.0.jar) in the SoapUI-5.0.0/lib directory, then it worked fine:
But I would also like to run the tests via maven, but I can not get it working. I have tried to add this to the dependency section in pom.xml:
<dependency> <groupId>org.apache.ivy</groupId> <artifactId>ivy</artifactId> <version>2.4.0-rc1</version> </dependency> <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.51</version> </dependency> <dependency> <groupId>ant</groupId> <artifactId>ant-jsch</artifactId> <version>1.6.5</version> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <version>1.7.0</version> </dependency>
But that did not work:
Any suggestions? I thought I could set a soapuiproperty to point out the directory where the jar files are located, but I do not know wich properties that should be used if this might be teh solution.
BR
Anders