From 3870ab0e6021eb17d04883f97fe144d2db96e745 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 31 Aug 2009 22:40:12 +0000 Subject: [PATCH] o Restored release profile for the sake of backward-compat (its removal needs to be deferred until we bump the model version) git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@809769 13f79535-47bb-0310-9956-ffa450edef68 --- .../model/building/DefaultModelBuilder.java | 16 ++++-- .../org/apache/maven/model/pom-4.0.0.xml | 51 +++++++++++++++++++ 2 files changed, 62 insertions(+), 5 deletions(-) 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 884fe68d5b..149becc0f1 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 @@ -124,6 +124,7 @@ public class DefaultModelBuilder problems.setRootModel( inputModel ); ModelData resultData = new ModelData( inputModel ); + ModelData superData = new ModelData( getSuperModel() ); List lineage = new ArrayList(); @@ -157,15 +158,20 @@ public class DefaultModelBuilder } } + if ( currentData == superData ) + { + break; + } + configureResolver( request.getModelResolver(), tmpModel, problems ); currentData = readParent( tmpModel, request, problems ); - } - ModelData superData = new ModelData( getSuperModel() ); - superData.setRawModel( superData.getModel() ); - superData.setActiveProfiles( Collections. emptyList() ); - lineage.add( superData ); + if ( currentData == null ) + { + currentData = superData; + } + } assembleInheritance( lineage, request, problems ); diff --git a/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml b/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml index 2621c1c46d..0b4f98c240 100644 --- a/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml +++ b/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml @@ -153,5 +153,56 @@ under the License. ${project.build.directory}/site + + + + + release-profile + + + + performRelease + true + + + + + + + true + maven-source-plugin + + + attach-sources + + jar + + + + + + true + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + true + maven-deploy-plugin + + true + + + + + + +