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

Artifacts with classifiers are not included anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 3.4.0
    • None
    • dependencySet, filtering
    • None

    Description

      I just upgraded to 3.4.0 (from 3.3.0) and one of my dependencies with a classifier and supposed to be included is now skipped. I guess it's a consequence of MASSEMBLY-955.

      In the pom the dependency is declared with

          <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-start</artifactId>
            <version>10.0.7</version>
            <classifier>shaded</classifier>
            <optional>true</optional>
          </dependency>
      

      and assembly configuration looks like

      <assembly>
        <id>distribution</id>
        <formats>
          <format>zip</format>
        </formats>
        <includeBaseDirectory>false</includeBaseDirectory>
        <dependencySets>
          <dependencySet>
            <outputFileNameMapping>start.jar</outputFileNameMapping>
            <outputDirectory>/jetty</outputDirectory>
            <includes>
              <include>org.eclipse.jetty:jetty-start:jar:shaded</include>
            </includes>
          </dependencySet>
      [...]
        </dependencySets>
      [...]
      </assembly>
      

      And I see the related warning in the log:

      [INFO] --- maven-assembly-plugin:3.4.0:single (default) @ xwiki-platform-tool-jetty-resources ---
      [INFO] Reading assembly descriptor: /media/DATA/xwiki/sources/xwiki-platform/xwiki-platform-tools/xwiki-platform-tool-jetty/xwiki-platform-tool-jetty-resources/src/main/assembly/distribution.xml
      [WARNING] The following patterns were never triggered in this artifact inclusion filter:
      o  'org.eclipse.jetty:jetty-start:jar:shaded'
      
      [WARNING] The following patterns were never triggered in this artifact exclusion filter:
      o  'org.eclipse.jetty:jetty-start:jar:shaded'
      

      For more details the module can be found on https://github.com/xwiki/xwiki-platform/tree/xwiki-platform-14.5/xwiki-platform-tools/xwiki-platform-tool-jetty/xwiki-platform-tool-jetty-resources.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: