Author: mkleint
Date: Thu Jul  3 05:08:42 2008
New Revision: 673664

URL: http://svn.apache.org/viewvc?rev=673664&view=rev
Log:
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.

Modified:
    
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java

Modified: 
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java
URL: 
http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java?rev=673664&r1=673663&r2=673664&view=diff
==============================================================================
--- 
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java
 (original)
+++ 
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/build/model/DefaultModelLineageBuilder.java
 Thu Jul  3 05:08:42 2008
@@ -107,6 +107,11 @@
 
         do
         {
+            currentRemoteRepositories = updateRepositorySet( 
current.getModel(),
+                                                             
currentRemoteRepositories,
+                                                             current.getFile(),
+                                                             config,
+                                                             
current.isValidProfilesXmlLocation() );
             if ( lineage.size() == 0 )
             {
                 lineage.setOrigin( current.getModel(),
@@ -122,11 +127,6 @@
                                    current.isValidProfilesXmlLocation() );
             }
 
-            currentRemoteRepositories = updateRepositorySet( 
current.getModel(),
-                                                             
currentRemoteRepositories,
-                                                             current.getFile(),
-                                                             config,
-                                                             
current.isValidProfilesXmlLocation() );
 
             current = resolveParentPom( current,
                                         currentRemoteRepositories,


Reply via email to