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

Consider dependency optional attribute when gather dependencies

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6
    • None
    • dependencySet
    • None
    • Maven 3.3

    Description

      In some scenario we would like to have the opportunity to skip optional dependencies

      <assembly ...>
        <id>dist</id>
        <formats>
          <format>zip</format>
        </formats>
          <includeBaseDirectory>false</includeBaseDirectory>
          <moduleSets>
            <moduleSet>
              <!-- Enable access to all projects in the current multimodule build! -->
              <useAllReactorProjects>true</useAllReactorProjects>
              <binaries>
                <outputDirectory>3rdparty</outputDirectory>
                <unpack>false</unpack>
      
                <dependencySets>
                  <dependencySet>
                    <!-- option 1 -->
                    <considerOptional>true</considerOptional>
                    <!-- or option 2 -->
                    <includes>
                      <!-- groupId:artifactId:type[:classifier][:optional]:version -->
                      <include>*:*:*:false:*</include>
                    </includes>
                 </dependencySet>
               </dependencySets>
             </binaries>
          </moduleSet>
        </moduleSets>
      </assembly>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nfalco79 Nikolas Falco
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: