Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6946

Build/consumer incorrectly transforms name of artifactId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.0.0
    • None
    • None
    • None

    Description

      While trying to build maven-clean-plugin with Maven 3.7.0-SNAPSHOT, most tests called by the maven-invoker-plugins fail.
      It looks like the copy of maven-plugins-34.pom is one of the root causes.
      Comparing the original and this file (assuming transformation) the following are expected differences:

      • removed whitespace around the license
      • removed relativePath
      • removed whitespaces after closing root-tag

      The only invalid difference is
      <artifactId>maven-plugin-annotations</artifactId>
      which became
      <artifactId>tions</artifactId>

      There are 2 issues:

      • the artifactId is incorrect
      • as this file is not part of the reactor, there's no need to transform the file.

      One thing I noticed as well (only happens with build/consumer active):

      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bytecode-version) @ maven-clean-plugin ---
      ERROR:  'The entity "oslash" was referenced, but not declared.'
      

      Workaround: add -Dmaven.experimental.buildconsumer=false

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            rfscholte Robert Scholte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: