[ 
https://issues.apache.org/jira/browse/MNG-5986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy updated MNG-5986:
-------------------------------
    Description: 
Maven recognizes an attribute 'combine.self' on the 'configuration' element 
within plugin declarations within a POM ('configuration' elements within and 
outside 'execution' elements). However, an XML validator flags use of this 
attribute as an error. Which is correct, because published XSD 
http://maven.apache.org/xsd/maven-4.0.0.xsd does not declare 'combine.self' as 
an attribute of 'configuration'.

Current declaration of the configuration element:

{code:xml}
      <xs:element name="configuration" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="version">4.0.0</xs:documentation>
          <xs:documentation source="description">The configuration of the 
reporting plugin.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>{code}

Simple fix:

{code:xml}
      <xs:element name="configuration" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="version">0.0.0+</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
          </xs:sequence>
          <xs:attribute name="combine.self" type="xs:string" use="optional"/>
        </xs:complexType>
      </xs:element>{code}

  was:
Maven recognizes an attribute 'combine.self' on the 'configuration' element 
within plugin declarations within a POM ('configuration' elements within and 
outside 'execution' elements). However, an XML validator flags use of this 
attribute as an error. Which is correct, because published XSD 
http://maven.apache.org/xsd/maven-4.0.0.xsd does not declare 'combine.self' as 
an attribute of 'configuration'.

Current declaration of the configuration element:

<xs:element name="configuration" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="version">4.0.0</xs:documentation>
          <xs:documentation source="description">The configuration of the 
reporting plugin.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Simple fix:

      <xs:element name="configuration" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="version">0.0.0+</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
          </xs:sequence>
          <xs:attribute name="combine.self" type="xs:string" use="optional"/>
        </xs:complexType>
      </xs:element>


> XML validators flag errors on poms that declare plugin configurations using 
> the 'combine.self' attribute because the maven-4.0.0 XSD does not declare 
> this attribute.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-5986
>                 URL: https://issues.apache.org/jira/browse/MNG-5986
>             Project: Maven
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 3.3.3
>         Environment: All
>            Reporter: Ben Tels
>            Priority: Minor
>
> Maven recognizes an attribute 'combine.self' on the 'configuration' element 
> within plugin declarations within a POM ('configuration' elements within and 
> outside 'execution' elements). However, an XML validator flags use of this 
> attribute as an error. Which is correct, because published XSD 
> http://maven.apache.org/xsd/maven-4.0.0.xsd does not declare 'combine.self' 
> as an attribute of 'configuration'.
> Current declaration of the configuration element:
> {code:xml}
>       <xs:element name="configuration" minOccurs="0">
>         <xs:annotation>
>           <xs:documentation source="version">4.0.0</xs:documentation>
>           <xs:documentation source="description">The configuration of the 
> reporting plugin.</xs:documentation>
>         </xs:annotation>
>         <xs:complexType>
>           <xs:sequence>
>             <xs:any minOccurs="0" maxOccurs="unbounded" 
> processContents="skip"/>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>{code}
> Simple fix:
> {code:xml}
>       <xs:element name="configuration" minOccurs="0">
>         <xs:annotation>
>           <xs:documentation source="version">0.0.0+</xs:documentation>
>         </xs:annotation>
>         <xs:complexType>
>           <xs:sequence>
>             <xs:any minOccurs="0" maxOccurs="unbounded" 
> processContents="skip"/>
>           </xs:sequence>
>           <xs:attribute name="combine.self" type="xs:string" use="optional"/>
>         </xs:complexType>
>       </xs:element>{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to