You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/06/13 02:58:12 UTC

[jira] Closed: (MNG-3367) Using a property as version number in multi project, doesnt resolve

     [ http://jira.codehaus.org/browse/MNG-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3367.
-----------------------------

    Resolution: Won't Fix

we can't simply store it in memory, as there is no guarantee that the previous module has been built.

You are looking for the the following issue, IMO: MNG-624

> Using a property as version number in multi project, doesnt resolve
> -------------------------------------------------------------------
>
>                 Key: MNG-3367
>                 URL: http://jira.codehaus.org/browse/MNG-3367
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.8
>            Reporter: Dave Casserly
>         Attachments: projectA.zip
>
>
>  Here is my project layout
>             /------------>ProjectB------->ProjectBChild
>            /
> ProjectA
>             \
>              \----------->ProjectC------->ProjectCChild
> 1. ProjectA pom contains a property (${snapshot.version}) that will be used for the <version> in every single project and sub project.
> 2. ProjectCChild has a dependency on ProjectBChild
> 3. If i build from ProjectA, everything runs fine and it picks up the property fine. 
> 4. However, if i try and build from ProjectC, it cant resolve the dependency of ProjectBChild because the property ${snapshot.version} wont resolve.!!!!!
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://repo1.maven.org/maven2/com/test/projectB/projectB/${snapshot.version}/projectB-${snapshot.version}.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: com.test.projectB
> ArtifactId: projectB
> Version: ${snapshot.version}
> Reason: Unable to download the artifact from any repository
>   com.test.projectB:projectB:pom:${snapshot.version}
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> Ive attached a sample 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