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/12/18 04:42:19 UTC

[jira] Commented: (MNG-3847) Child POMs Not Properly Inheriting Global Property Versions

    [ http://jira.codehaus.org/browse/MNG-3847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158417#action_158417 ] 

Brett Porter commented on MNG-3847:
-----------------------------------

could you attach a simple project to make it easier to reproduce?

> Child POMs Not Properly Inheriting Global Property Versions
> -----------------------------------------------------------
>
>                 Key: MNG-3847
>                 URL: http://jira.codehaus.org/browse/MNG-3847
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9
>         Environment: Mac OS X 
>            Reporter: David Haines
>
> We have two large projects, let's call them Project A and B, each with a super pom and numerous sub-projects.  In the super pom for each project, we define a property called baseVersion and reference this variable in all applicable artifact versions and dependent artifacts.  Project A builds without issue.  Project B, however, depends on artifacts from Project A.  Project B fails to resolve the ${baseVersion} defined in its super pom when referenced as the version in Project A dependent artifacts (see output below).
> Can someone advise how we're meant to define global versions that may be referenced throughout child pom's?
> INFO] ------------------------------------------------------------------------
> [INFO] Building Project B: Common
> [INFO]    task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://repo1.maven.org/maven2/com/projecta/core/projecta-core/${baseVersion}/projecta-core-${baseVersion}.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: com.projecta.core
> ArtifactId: projecta-core
> Version: ${baseVersion}

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