You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/30 03:38:56 UTC

[jira] Closed: (MNG-3008) Multiple executions of embedder reuse the ProjectBuildCache

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

Jason van Zyl closed MNG-3008.
------------------------------

       Resolution: Incomplete
    Fix Version/s:     (was: 3.x)

> Multiple executions of embedder reuse the ProjectBuildCache
> -----------------------------------------------------------
>
>                 Key: MNG-3008
>                 URL: http://jira.codehaus.org/browse/MNG-3008
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 3.0-alpha-1
>            Reporter: Carlos Sanchez
>
> In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
> there's a call to resolveParentPom passing the projectBuildCache
> This test breaks
> /trunk/pom.xml (a:b:1.0-SNAPSHOT)
> /trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)
> when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml
> now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
> If it doesn't exist it will throw a FileNotFoundException

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