|
[
Permalink
| « Hide
]
Brian Fox added a comment - 12/Jul/07 09:21 PM
I debugged another problem caused by enforcer:enforce-once (aggregator and requiresDependencyResolution) and confirm this. The resolveTransitively doesn't consider artifacts in the reactor.
When a dependency can't be resolved AND the same is found in the reactor AND the plugin is an aggregator, we produce a large warning and then skip it. A clone of this issue has been created for possible further solution in 2.1: MNG-3260
I checked out this evening from https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x
See attached. Running 'mvn generate-sources' returns an error, whereas running 'mvn package' completes successfully.
Best regards, Alfie. Hi Brian, thanks for taking a look at the project. Maybe this isn't the right forum to discuss this now you've made it clear this is a different issue. However, I can't see how this is 'normal' behaviour because the dependency does exist in the reactor and targeting a later phase is successful. Also we only see the problem if a plugin is invoked by the build at an early phase and the plugin requires dependency resolution. At the moment our team is working around this issue by running 'mvn package eclipse:eclipse' which just seems crazy to me. If you need a fuller description of what we tried see my post on the mailing list (http://www.mail-archive.com/users@maven.apache.org/msg75053.html
Alfie, an issue for your problem exists in JIRA for maven-eclipse-plugin as
For info I had already raised MNG-3283 for the specific issue we're facing. I'll comment on
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||