mirror of https://github.com/apache/maven.git
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
This commit is contained in:
parent
09bd331c5a
commit
360b949e41
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue