current model's remote repositories need to be calculated before the parent/origin is stored in lineage.

fixes this scenario (as found in svn:https://www.dev.java.net/svn/grizzly/trunk)
project defines remote custom repository and also has build extension that is only available at that remote repository. it defines RELEASE as the version of the extension artifact.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@673664 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Milos Kleint 2008-07-03 12:08:42 +00:00
parent 3d6b63bc11
commit b6d1a5d1ac
1 changed files with 5 additions and 5 deletions

View File

@ -107,6 +107,11 @@ public class DefaultModelLineageBuilder
do
{
currentRemoteRepositories = updateRepositorySet( current.getModel(),
currentRemoteRepositories,
current.getFile(),
config,
current.isValidProfilesXmlLocation() );
if ( lineage.size() == 0 )
{
lineage.setOrigin( current.getModel(),
@ -122,11 +127,6 @@ public class DefaultModelLineageBuilder
current.isValidProfilesXmlLocation() );
}
currentRemoteRepositories = updateRepositorySet( current.getModel(),
currentRemoteRepositories,
current.getFile(),
config,
current.isValidProfilesXmlLocation() );
current = resolveParentPom( current,
currentRemoteRepositories,