With a fresh download of Groovy 2.1.9, I create:
// Test.Groovy
@Grab('commons-io:commons-io:1.2')
import org.apache.commons.io.CopyUtils
println "Resolved!"
Then I try running
$ ./groovy-2.1.9/bin/groovy Test.groovy
which fails with
General error during conversion: Error grabbing Grapes --
[download failed: commons-io#commons-io;1.2!commons-io.jar]
The artifact is listed in maven central, downloadable here
For what it's worth, various local files are created in:
~/.groovy/grapes/commons-io/commons-io
I'd very much appreciate ideas on how to debug or "resolve"!
Update
If I create a new user on my system (with no dotfiles in her homedir), this works. So I've got some user-specific config that's breaking things. I've tried deleting ~/.groovy
, ~/.m2
and ~/.ivy
to no avail. What else could it be?