From 360b949e413c3c6221b4e9470e9af7fba3e4ad6a Mon Sep 17 00:00:00 2001 From: Britton Isbell Date: Wed, 18 Feb 2009 04:44:59 +0000 Subject: [PATCH] Small change to index on model building. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@745377 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/project/builder/PomTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java b/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java index 1eadbc7b74..d31d822443 100644 --- a/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java +++ b/maven-project-builder/src/main/java/org/apache/maven/project/builder/PomTransformer.java @@ -433,7 +433,7 @@ public class PomTransformer { int index = props.indexOf(mp) + 1; - if(index <= props.size() && mp.isParentOf(props.get(index)) && mp.getDepth() != props.get(index).getDepth() + if(index < props.size() && mp.isParentOf(props.get(index)) && mp.getDepth() != props.get(index).getDepth() && !props.get(index).getUri().contains("#property")) { p.add(new ModelProperty(mp.getUri(), null));