You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Eugene Kuleshov (JIRA)" <ji...@codehaus.org> on 2006/01/12 18:39:02 UTC

[jira] Updated: (MNGECLIPSE-20) using ${version} for subproject dependencies doesn't work (maven uses 2.4.1 version instead)

     [ http://jira.codehaus.org/browse/MNGECLIPSE-20?page=all ]

Eugene Kuleshov updated MNGECLIPSE-20:
--------------------------------------

        Version: 0.0.4
    Fix Version: 0.0.5

> using ${version} for subproject dependencies doesn't work (maven uses 2.4.1 version instead)
> --------------------------------------------------------------------------------------------
>
>          Key: MNGECLIPSE-20
>          URL: http://jira.codehaus.org/browse/MNGECLIPSE-20
>      Project: Maven 2.x Plug-in for Eclipse
>         Type: Bug

>     Versions: 0.0.4
>  Environment: win xp, maven 2.0.1, eclipse plugin 0.0.3, eclipse 3.1
>     Reporter: Michal Stochmialek
>     Assignee: Jason van Zyl
>      Fix For: 0.0.5
>  Attachments: mvn-multiproject.zip
>
>
> 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.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org