Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-323

Flatten Maven Plugin conflicts with Maven Shade Plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      When using Flatten Maven Plugin in the same project with Maven Shade Plugin then the dependency reduced POM is not flattened.

      What i encountered that having flatten plugin configured according to https://maven.apache.org/maven-ci-friendly.html, and having shade plugin configured with the default settings to produce uber jar the ${revision} variable remains and gets installed/deployed within the final pom, thus making the pom in the repository invalid.

      It seems that both plugins transform original pom. And then what gets installed in the last one, which is the 'shades' one. I'm not sure that's a bug (in a sense that it is shade's fault).

      See also https://github.com/mojohaus/flatten-maven-plugin/issues/100

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lakunma lakunma
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: