grails-maven icon indicating copy to clipboard operation
grails-maven copied to clipboard

Dependency Resolution Error

Open rutherfordjw opened this issue 10 years ago • 4 comments

Dependencies are being explicitly downloaded from Maven Central instead of specified maven repo. This is an issue for building on jenkins slaves without access to the external network.

This is using version 2.4.3

rutherfordjw avatar Aug 07 '14 17:08 rutherfordjw

I'm seeing this same behavior. The maven mirror settings are not being respected in selecting a repository to download plugin dependencies. The problem seems to have been introduced along with the introduction of Aether to this plugin. 2.4.0.RC2 works fine, but starting with 2.4.0 release this functionality is broken.

Incidentally, this problem does not occur if you attempt to build grails-maven on its own. It's only evident when including grails-maven as a plugin for another POM (i.e., a grails project POM.)

gefilte avatar Aug 26 '14 20:08 gefilte

@gefilte You said, "Incidentally, this problem does not occur if you attempt to build grails-maven on its own."

Could you please explain what you mean by this? I'm running into this bug and I don't understand what you are suggesting to do as a workaround.

bpt6576 avatar Oct 01 '14 18:10 bpt6576

@bpt6576 I wasn't suggesting a workaround, alas. This was just an observation that if you clone this repo directly and build it with maven it will respect the maven proxy settings. There's no workaround there because it isn't useful as a standalone build, it's only useful as a maven plugin.

gefilte avatar Oct 01 '14 19:10 gefilte

The no-mirror / no-proxy problem is still happening here, despite @YuryKovalev's commit. Dependencies of this plugin are downloaded from "repo.maven.apache.org" every time instead of from the designated mirror. (And proxy settings aren't being respected either, the downloads just fail for us.)

gefilte avatar Dec 19 '14 22:12 gefilte