[jira] Commented: (MNG-2653) using ${version} for subproject dependencies doesn't work (maven uses 2.4.1 version instead)

2007-06-16 Thread Kenney Westerhof (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99667
 ] 

Kenney Westerhof commented on MNG-2653:
---

I'm tempted to 'close - won't fix'.
${version} is evaluated to either a system prop or a -Dversion=..., so this is 
expected.

However, ${pom.version} _should_ be evaluated to the pom's version tag. But 
that's a different issue alltogether.


 using ${version} for subproject dependencies doesn't work (maven uses 2.4.1 
 version instead)
 

 Key: MNG-2653
 URL: http://jira.codehaus.org/browse/MNG-2653
 Project: Maven 2
  Issue Type: Bug
  Components: Inheritance and Interpolation
 Environment: win xp, maven 2.0.1, eclipse plugin 0.0.3, eclipse 3.1
Reporter: Michal Stochmialek
Assignee: Jason van Zyl
 Fix For: Reviewed Pending Version Assignment

 Attachments: mngeclipse20-trigger.jpg, mvn-multiproject.zip, 
 org.maven.ide.eclipse-MNGECLIPSE-20-patch.txt


 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
   modelVersion4.0.0/modelVersion
   parent
 groupIdfoo/groupId
 artifactIdfoo/artifactId
 version0.0.1-SNAPSHOT/version
   /parent
   artifactIdfoo-app/artifactId
   dependencies
 dependency
   groupIdfoo/groupId
   artifactIdfoo-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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2653) using ${version} for subproject dependencies doesn't work (maven uses 2.4.1 version instead)

2007-05-22 Thread Nathan Pruett (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_96661
 ] 

Nathan Pruett commented on MNG-2653:


This should be left as an open issue until it is fixed in Maven Embedder 
(MNG-265) and the new version of Maven Embedder is included in the Eclipse 
plugin.

 using ${version} for subproject dependencies doesn't work (maven uses 2.4.1 
 version instead)
 

 Key: MNG-2653
 URL: http://jira.codehaus.org/browse/MNG-2653
 Project: Maven 2
  Issue Type: Bug
  Components: Inheritance and Interpolation
 Environment: win xp, maven 2.0.1, eclipse plugin 0.0.3, eclipse 3.1
Reporter: Michal Stochmialek
Assignee: Jason van Zyl
 Attachments: mngeclipse20-trigger.jpg, mvn-multiproject.zip, 
 org.maven.ide.eclipse-MNGECLIPSE-20-patch.txt


 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
   modelVersion4.0.0/modelVersion
   parent
 groupIdfoo/groupId
 artifactIdfoo/artifactId
 version0.0.1-SNAPSHOT/version
   /parent
   artifactIdfoo-app/artifactId
   dependencies
 dependency
   groupIdfoo/groupId
   artifactIdfoo-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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira