Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Environment:win xp, maven 2.0.1, eclipse plugin 0.0.3, eclipse 3.1
-
Complexity:Intermediate
-
Number of attachments :
Description
My project is a ear multiproject. It has 5 modules, that have internal dependencies. For example web module needs app and type modules.
I usually use following declaration for this kind of dependencies. Note that I'm using $
{version} in dependency. In result I'm requesting foo-type jar of the same version as current project.<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>foo</groupId>
<artifactId>foo</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>foo-app</artifactId>
<dependencies>
<dependency>
<groupId>foo</groupId>
<artifactId>foo-type</artifactId>
<version>${version}
</version>
</dependency>
</dependencies>
</project>
This works from commandline, but doesn't work in eclipse plugin. I get following message:
"Unable to download the artifact from any repository foo:foo-type-2.4.1.jar"
Maven (or maven plugin) tries to download foo-type module in very strange version (instead 0.0.1-SNAPSHOT)!
I've attached simple multimodule project.
Issue Links
- depends upon
-
MNG-2651
POM interpolator treats ${pom.something} like ${something} and prefers system properties
-
-
MNGECLIPSE-41
Pickup embedder component 2.0.2
-
- duplicates
-
MNG-2339
${project.*} are interpreted in the wrong place
-
- is duplicated by
-
MECLIPSE-259
transitiv dependency version set to incorrect version 2.4.1
-
-
MNGECLIPSE-30
Maven plugin keeps looking for non-existent apacheds-*-2.4.1 dependency
-
-
MNGECLIPSE-145
dependencyManagement in parent poms broken in eclipse on linux
-
- is related to
-
MNG-2796
Yet another snapshot/timestamp version resolution problem
-
- relates to
-
MNGECLIPSE-30
Maven plugin keeps looking for non-existent apacheds-*-2.4.1 dependency
-
Jason, this is happening with 2.0.2 embedder. The strange thing that execute install from the embedder is working fine, but readProjectWithDependencies() is pulling off version "2.4.1" out of nowhere.