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
please focuse on the <configuration combine.self="override"> part.
so we need the output xsd be:
<xs:complexType>
<xs:sequence>
<xs:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/>
</xs:sequence>
<xs:attributename="combine.children"type="xs:string"use="optional">
<xs:annotation>
<xs:documentationsource="version">4.0.0+</xs:documentation>
<xs:documentationsource="description">
{@code combine.children}: available values are {@code merge} (default) and {@code append}.
@see &lt;a href=&quot;https://maven.apache.org/pom.html#Plugins&quot;&gt;POM Reference documentation&lt;/a&gt;
@see &lt;a href=&quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&quot;&gt;Xpp3DomUtils&lt;/a&gt;
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributename="combine.self"type="xs:string"use="optional">
<xs:annotation>
<xs:documentationsource="version">4.0.0+</xs:documentation>
<xs:documentationsource="description">
{@code combine.self}: available values are {@code merge} (default) and {@code override}.
@see &lt;a href=&quot;https://maven.apache.org/pom.html#Plugins&quot;&gt;POM Reference documentation&lt;/a&gt;
@see &lt;a href=&quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&quot;&gt;Xpp3DomUtils&lt;/a&gt;
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
though actually there be no ways for us to do it in modello now, as far as I get from modello sources codes.
so I want to modify some grammar of modello to add such feature.
one way be allow <fields> in <field>, and there be of course other ways, but I want to know about your ideas first.
thought1: <fields> in <field> approach?
<class>
<name>ConfigurationContainer</name>
<version>4.0.0+</version>
<description>Contains the configuration information of the container like Plugin.</description>
<fields>
<field>
<name>inherited</name>
<version>4.0.0+</version>
<description>
Whether any configuration should be propagated to child POMs. Note: While the type
of this field is {@code String} for technical reasons, the semantic type is actually
{@code Boolean}. Default value is {@code true}.
</description>
<type>String</type>
</field>
<field>
<description>
<![CDATA[ <p>The configuration as DOM object.</p> <p>By default, every element content is trimmed, but starting with Maven 3.1.0, you can add {@code xml:space="preserve"} to elements you want to preserve whitespace.</p> <p>You can control how child POMs inherit configuration from parent POMs by adding {@code combine.children} or {@code combine.self} attributes to the children of the configuration element:</p> <ul> <li>{@code combine.children}: available values are {@code merge} (default) and {@code append},</li> <li>{@code combine.self}: available values are {@code merge} (default) and {@code override}.</li> </ul> @see <a href="https://maven.apache.org/pom.html#Plugins">POM Reference documentation</a> @see <a href="https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html">Xpp3DomUtils</a>]]>
</description>
<name>configuration</name>
<type>DOM</type>
<fields>
<field xml.attribute="true" xml.tagName="combine.children">
<name>configurationCombineChildren</name>
<version>4.0.0+</version>
<description>
<![CDATA[ {@code combine.children}: available values are {@code merge} (default) and {@code append}. @see <a href="https://maven.apache.org/pom.html#Plugins">POM Reference documentation</a> @see <a href="https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html">Xpp3DomUtils</a>]]>
</description>
<type>String</type>
</field>
<field xml.attribute="true" xml.tagName="combine.self">
<name>configurationCombineSelf</name>
<version>4.0.0+</version>
<description>
<![CDATA[ {@code combine.self}: available values are {@code merge} (default) and {@code override}. @see <a href="https://maven.apache.org/pom.html#Plugins">POM Reference documentation</a> @see <a href="https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html">Xpp3DomUtils</a>]]>
</description>
<type>String</type>
</field>
</fields>
</field>
</fields>
<codeSegments>
<codeSegment>
<version>4.0.0+</version>
<code>
<![CDATA[ public boolean isInherited() { return ( getInherited() != null ) ? Boolean.parseBoolean( getInherited() ) : true; }]]>
</code>
</codeSegment>
<codeSegment>
<version>4.0.0/4.0.99</version>
<code>
<![CDATA[ @Deprecated public void unsetInheritanceApplied() { }]]>
</code>
</codeSegment>
</codeSegments>
</class>
The text was updated successfully, but these errors were encountered:
Hi.
In maven we need such grammar like:
please focuse on the
<configuration combine.self="override">
part.so we need the output xsd be:
though actually there be no ways for us to do it in modello now, as far as I get from modello sources codes.
so I want to modify some grammar of modello to add such feature.
one way be allow
<fields> in <field>
, and there be of course other ways, but I want to know about your ideas first.thought1:
<fields> in <field>
approach?The text was updated successfully, but these errors were encountered: