Skip to content

Commit

Permalink
Fix exclusion declaration order of groupId and artifactId (#112)
Browse files Browse the repository at this point in the history
It's better if MavenJDOMWriter behaves the same way as MavenXpp3Writer
  • Loading branch information
murdos authored Feb 15, 2024
1 parent cff3320 commit 923d9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/fabric8/maven/MavenJDOMWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1421,8 +1421,8 @@ protected Element updateElement(Counter counter, Element parent, String name, bo
protected void updateExclusion(Exclusion value, String xmlTag, Counter counter, Element element) {
Element root = element;
Counter innerCount = new Counter(counter.getDepth() + 1);
findAndReplaceSimpleElement(innerCount, root, "artifactId", value.getArtifactId(), null);
findAndReplaceSimpleElement(innerCount, root, "groupId", value.getGroupId(), null);
findAndReplaceSimpleElement(innerCount, root, "artifactId", value.getArtifactId(), null);
} // -- void updateExclusion(Exclusion, String, Counter, Element)

/**
Expand Down

0 comments on commit 923d9e8

Please sign in to comment.