How @Grab works in SoapUI
I use SoapUI-5.4.0. I work on Windows, and I am behind a proxy an work with Nexus. How do I get this to work?
@Grab(group='commons-lang', module='commons-lang', version='2.4')
import org.apache.commons.lang.WordUtils
println "Hello ${WordUtils.capitalize('world')}"
I put ivy-2.4.0.jar in the lib directory. I see in the log:
General error during conversion: Error grabbing Grapes -- [unresolved dependency: commons-lang#commons-lang;2.4: several problems occurred while resolving dependency: commons-lang#commons-lang;2.4 {default=[default]}:
several problems occurred while resolving dependency: org.apache.commons#commons-parent;9 {}:
several problems occurred while resolving dependency: org.apache#apache;4 {}:
java.util.NoSuchElementException
There are:
C:\Users\isc30565\.groovy\grapes\commons-lang\commons-lang\ivydata-2.4.properties
C:\Users\isc30565\.groovy\grapes\org.apache.commons\commons-parent\ivydata-9.properties
C:\Users\isc30565\.groovy\grapes\org.apache\apache\ivydata-4.properties
For example in the first one:
#ivy cached data file for commons-lang#commons-lang;2.4
#Fri Sep 17 13:42:05 CEST 2021
artifact\:commons-lang\#pom.original\#pom\#-<a number>.location=file\:C\:/Users/<me>/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.pom
artifact\:commons-lang\#pom.original\#pom\#-<a number>.is-local=true
artifact\:commons-lang\#pom.original\#pom\#-<a number>.original=artifact\:commons-lang\#pom.original\#pom\#-2103761529
artifact\:commons-lang\#pom.original\#pom\#-<a number>.exists=true