mirror of https://github.com/apache/maven.git
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:
parent
3d6b63bc11
commit
b6d1a5d1ac
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue