Question

I have a Maven repo set up as a website, hosted on an Amazon S3 bucket. In my Groovy code, if I use the @GrabResolver annotation with my @Grab annotation, Grape successfully finds the jar I need and the script runs.

I want to set up grapeConfig.xml so that I don't have to use @GrabResolver in my scripts, and I can't figure out how to do it. http://groovy.codehaus.org/Grape doesn't explain how to set a remote resolver that's not hosted on ibiblio. It does say to consult the Ivy documentation, but I can only find info in the Ivy docs on how to connect to an Ivy repo, rather than a Maven one (ie, one that has ivy.xml files).

In short: How can I configure my grapeConfig.xml so that I don't need a @GrabResolver annotation pointing to my remote repo?

Was it helpful?

Solution

Well, it turns out I was massively overthinking it.

The solution is to just use an ibiblio tag anyway, specifying the Maven repo's root in the "root" attribute.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top