Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344703

Summary: Can not resolve dependencies for artifacts that contains inherited dependencies with version ranges
Product: z_Archived Reporter: Cuong Luu <cuong.luu>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: major    
Priority: P3 CC: igor, pascal
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Cuong Luu CLA 2011-05-04 09:45:45 EDT
Build Identifier: 20090920-1017

Consider the following.
1) parent POM that contains dependencies that all have version ranges, e.g.
<dependency>
  <groupId>third.party</groupId>
  <artifactId>third.party.lib</artifactId>
  <version>[4, 5)</version>
  <scope>provided</scope>
</dependency>
2) project1 inherits parent POM as a parent, e.g.
<parent>
  <groupId>test.group</groupId>
  <artifactId>parent</artifactId>
  <version>1.0.0</version>
</parent>
3) project2 also inherits parent POM and defines a dependency on project1.

All this is fine when I use maven command line to deploy to my repository.

Now, I use Eclipse (with m2eclipse) to check out project2 and Enable Dependency Management.
Here are the problems.
a) If project2 defines project1 version as 1.0.0 - SUCCESS
b) If project2 defines project1 version as [1,2) - FAILS
c) If I remove the third.party.lib dependency from the parent POM - SUCCESS on both of the a) and b).

The error it has is that it can't find the third.party.lib artifact, even though the POM for the artifact has been download (but NOT the jar itself).

Reproducible: Always
Comment 1 Igor Fedorenko CLA 2011-05-04 10:12:20 EDT
Please provide complete standalone project and steps to reproduce the problem.
Comment 2 Igor Fedorenko CLA 2011-05-04 10:13:04 EDT
Please indicate exact version of m2e you use and whether the problem still exists in latest 0.13.0 builds.
Comment 3 Cuong Luu CLA 2011-05-05 04:39:05 EDT
Is there a 0.13.0?
I just checked the http://m2eclipse.sonatype.org/sites/m2e update site and the version is still 0.12.1.20110112-1712
Comment 4 Pascal Rapicault CLA 2011-05-08 11:04:14 EDT
0.13 is available on http://download.eclipse.org/technology/m2e/updates/M
Comment 5 Igor Fedorenko CLA 2011-05-18 15:56:46 EDT
Please reopen if you still see the problem with recent 0.13 builds. Make sure to provide standalone sample project and steps to reproduce the problem.
Comment 6 Denis Roy CLA 2021-04-19 13:22:29 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/