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

Transitive dependencies missing when two deps rely on them, but one of the deps is excluded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.2-beta-5
    • None
    • dependencySet
    • None

    Description

      NOTE: This will only happen in very specific cases! See comments and linked issue.

      In a reactor, there are 4 modules A, B, C and D.

      • A and B depends on C
      • D depends
        • on B
        • on A due to a profile.

      When making an assembly from D

      • including A
      • excluding B
      • using transitive dependencies
        <formats>
          <format>dir</format>
        </formats>
        <includeBaseDirectory>false</includeBaseDirectory>  
        <dependencySets>
          <dependencySet>
            <useTransitiveDependencies>true</useTransitiveDependencies>
            <useTransitiveFiltering>true</useTransitiveFiltering>
            <includes>
              <include>example:a</include>
            </includes>
            <excludes>
            	<exclude>example:b</exclude>
            </excludes>
          </dependencySet>
        </dependencySets>
      </assembly>
      

      C isn't in the result directory.

      Remark: C is in the result directory if D depends on A normally.

      Attachments

        1. maven-assembly-example.zip
          6 kB
          Guillaume Eyroulet

        Issue Links

          Activity

            People

              Unassigned Unassigned
              geyroulet.woonoz Guillaume Eyroulet
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: