Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 3.0-alpha-1
-
Component/s: Plugins and Lifecycle
-
Labels:None
-
Complexity:Expert
-
Testcase included:yes
Description
See attached sample project structure.
In short: project A depends on project B version 1.1-SNAPSHOT,
but only 1.0-SNAPSHOT is available (both in the reactor, so on disk), as well
as in the local repository.
Still, m2 install runs fine. Excerpt from building Project A:
[DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository
test:sub-b:1.1-SNAPSHOT:pom
......configuring compiler plugin.....
[DEBUG] (f) classpathElements = [/mnt/a/home/forge/work/sandbox/m2test/deptest/sub-a/target/classes, /mnt/a/home/forge/work/sandbox/m2test/deptest/sub-b/target/classes]
Now, when running m2 eclipse:eclipse, m2 reacts as it should. Still the pom stub-model is used,
but the .jar cannot be resolved.
(weird enough m2 eclipse:eclipse doesn't accept reactor dependencies during resolve,
although the generated projects do have internal links - but this is a different bug; this is a convenient bug for now..
)
Proposed fix: Reactor projects can only be used when the pom versions match too. I thought
this code was in months ago and working properly.
Issue Links
- is depended upon by
-
MECLIPSE-123
Transitive deps with wrong version partly resolved to reactor resulting in 2 absolute paths being concatenated
-
-
MNG-2787
Multi Project Aggregator ignoring dependency version in the POM
-
will investigate.