Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-998

Transitive dependencies are not properly excluded as of 3.1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1, 3.6.0
    • 3.7.0
    • dependencySet
    • None

    Description

      Please check the attached project.

      When using maven-assembly-plugin version 3.1.0 and below running mvn clean package puts just sandbox-0.0.1-SNAPSHOT.jar under target/release.

      But when using version 3.1.1 and above (tested with 3.6.0) the same command also puts jackson-core-2.14.2.jar in the target/release directory.

      The project only has two dependencies:

      • org.elasticsearch.test:framework with the 'test' scope
      • and org.elasticsearch:elasticsearch

      The latter is excluded in the assembly descriptor. So there shouldn't be any jars under target/release except for the project artifact.
      I.e. maven-assembly-plugin:3.1.0 works correctly. And later versions apparently have a bug.

      Attachments

        1. sandbox.zip
          1 kB
          Dmitry Cherniachenko

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              sabio Dmitry Cherniachenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: