You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team, MetadataJDOMWriter would call org.apache.maven.io.util.WriterUtils#replaceXpp3DOM on writing plugin/configuration, since sub elements of configuration accept attributes namedcombine.children and combine.self to control how Maven combine the configurations from parent, a use case like below may output wrong result as WriterUtils only compare the name of elements.
Hmm, so it looks like we need to consider whether self.combine or children.combine is set before we do blind replacement. It would take a bit of research to fix this, mainly just trying to go back and remember the values for those attributes, and what they mean. I'm sure they're in some obscure maven wiki page or something.
@keshin I know it's been awhile, but if you have the ability to send a PR for this that would be best. That way you get full credit for the work (in the git log). Also, you're probably better versed in the edge cases right now, since you've been looking at this problem specifically.
Regardless, I agree it's something we need to address.
Hi team,
MetadataJDOMWriter
would call org.apache.maven.io.util.WriterUtils#replaceXpp3DOM on writing plugin/configuration, since sub elements ofconfiguration
accept attributes namedcombine.children
andcombine.self
to control how Maven combine the configurations from parent, a use case like below may output wrong result as WriterUtils only compare the name of elements.I think the we also should compare the attribute name and value at https://github.com/Commonjava/maven-model-jdom-support/blob/master/src/main/java/org/apache/maven/io/util/WriterUtils.java#L137, how do you think about it? I can send a pull request for it if you'd like to.
Test pom:
Test case:
The text was updated successfully, but these errors were encountered: