Multiple executions of embedder reuse the ProjectBuildCache
-----------------------------------------------------------
Key: MNG-3008
URL: http://jira.codehaus.org/browse/MNG-3008
Project: Maven 2
Issue Type: Bug
Affects Versions: 2.1-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