Tue, 17 Oct 2023 11:56:12 -0700, /David Karr/:

[...]
     cvc-complex-type.3.2.2: Attribute 'combine.self' is not allowed to
appear in element 'configuration'.

I, along with multiple other people, assumed that this indicates a bug in m2e, because it clearly works in the command-line build. However, it was pointed out that m2e is actually USING the defined schema defined in the boilerplate of a pom.xml, instead of ignoring it, and if you open up that schema, it clearly shows the lack of an "attribute" element in the "configuration" complex-type.

So, clearly mvn is using that attribute, but I'm guessing it's not doing any schema validation, or builds using that attribute would fail.

I'm not familiar with this attribute but looking at <https://maven.apache.org/xsd/maven-4.0.0.xsd>:

You can control how child POMs inherit configuration from parent POMs by adding <code>combine.children</code> or <code>combine.self</code> attributes to the children of the configuration element...

If I'm reading this correctly, it says the attribute could/should be added to the children of the <configuration> element, and not on that element itself. Then I don't know why it works in the command-line run. I guess others would provide more detail.

--
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to