You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/04/22 18:07:50 UTC

[maven] branch MNG-6383-rebuild created (now a1dbb58)

This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a change to branch MNG-6383-rebuild
in repository https://gitbox.apache.org/repos/asf/maven.git.


      at a1dbb58  [MGN-6383] - ProjectBuilder unnecessarily rebuilds modules with ci-friendly versions  o Just give the idea a try.

This branch includes the following new commits:

     new a1dbb58  [MGN-6383] - ProjectBuilder unnecessarily rebuilds modules with ci-friendly versions  o Just give the idea a try.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.

[maven] 01/01: [MGN-6383] - ProjectBuilder unnecessarily rebuilds modules with ci-friendly versions o Just give the idea a try.

Posted by kh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MNG-6383-rebuild
in repository https://gitbox.apache.org/repos/asf/maven.git

commit a1dbb583a2c14a143ab25f56fb45e0398e6d67f9
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Apr 22 20:07:13 2018 +0200

    [MGN-6383] - ProjectBuilder unnecessarily rebuilds modules with ci-friendly versions
     o Just give the idea a try.
---
 .../java/org/apache/maven/model/building/DefaultModelBuilder.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java b/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
index 44ee334..5b5e322 100644
--- a/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
+++ b/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
@@ -388,6 +388,14 @@ public class DefaultModelBuilder
         resultModel = interpolateModel( resultModel, request, problems );
         resultData.setModel( resultModel );
 
+        if ( resultModel.getParent() != null )
+        {
+            final ModelData parentData = lineage.get( 1 );
+            final Model interpolatedParent = interpolateModel( parentData.getModel(), request, problems );
+            // parentData.setModel( interpolatedParent );
+            parentData.setVersion( interpolatedParent.getVersion() );
+        }
+
         // url normalization
         modelUrlNormalizer.normalize( resultModel, request );
 

-- 
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.