maven-assembly-plugin icon indicating copy to clipboard operation
maven-assembly-plugin copied to clipboard

[MASSEMBLY-832] Consider dependency optional attribute when gather dependencies

Open jira-importer opened this issue 9 years ago • 1 comments

Nikolas Falco opened MASSEMBLY-832 and commented

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>

Affects: 2.6

Issue Links:

  • HIVE-25832 Exclude Category-X JDBC drivers from binary distribution ("causes")

Remote Links:

2 votes, 4 watchers

jira-importer avatar Oct 06 '16 16:10 jira-importer