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

Brett Porter closed MNG-3847.
-----------------------------

      Assignee: Brett Porter
    Resolution: Cannot Reproduce

I get the feeling you are defining the value in B and trying to apply it to the 
project A via the dependency, which is not allowed.

If this is not the case, please attach a sample project using the structure you 
outlined that illustrates the problem. Thanks!

> 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
>            Assignee: Brett Porter
>
> 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

        

Reply via email to