I'm trying to retrieve an Artefact from our internal Nexus OSS Maven Repository with Groovy's "GrabResolver" Annotation with the following Statement:
@GrabResolver(name = 'bla', root = 'http://x.x.x.x:8081/repository/bla/', m2Compatible = 'true')
....
groovy.grape.Grape.grab(group: '...', module: '...', version: '...', ext: '...')
Now I'm facing the Problem that our Nexus is secured with Login Credentials and does not show up artefacts for anonymous access.
Is it possible to pass the Login Credentials to the GrabResolver Call?
There is no way to add credentials from the annotation. You can customize your Ivy settings to do it for you. Add your credentials to ~/.groovy/grapeConfig.xml