Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-248

Make parent/pom.xml valid against Maven XSD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.5.0.Final
    • None
    • None
    • None
    • False
    • False
    • None

      $ xmllint --schema /tmp/maven-4.0.0.xsd parent/pom.xml --noout
      parent/pom.xml:352: element configuration: Schemas validity error : Element '{http://maven.apache.org/POM/4.0.0}configuration', attribute 'combine.self': The attribute 'combine.self' is not allowed.
      parent/pom.xml fails to validate
      

      Based on the schema, append is not a valid value:

      available values are <code>merge</code> (default) and <code>override</code>.
      

      After removal, the effective pom looks fine:

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.10.1</version>
        <configuration>
          <release>11</release>
          <encoding>UTF-8</encoding>
          <useIncrementalCompilation>false</useIncrementalCompilation>
          <parameters>true</parameters>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
          <source>11</source>
          <target>11</target>
          <testSource>11</testSource>
          <testTarget>11</testTarget>
          <compilerArgs>
            <arg>-Xlint:unchecked</arg>
          </compilerArgs>
        </configuration>
      </plugin>
      

            pruivo@redhat.com Pedro Ruivo
            pruivo@redhat.com Pedro Ruivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: