[ 
https://issues.apache.org/jira/browse/MASSEMBLY-832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996731#comment-16996731
 ] 

Elliotte Rusty Harold commented on MASSEMBLY-832:
-------------------------------------------------

seems reasoanble

> Consider dependency optional attribute when gather dependencies
> ---------------------------------------------------------------
>
>                 Key: MASSEMBLY-832
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-832
>             Project: Maven Assembly Plugin
>          Issue Type: New Feature
>          Components: dependencySet
>    Affects Versions: 2.6
>         Environment: Maven 3.3
>            Reporter: Nikolas Falco
>            Priority: Minor
>
> In some scenario we would like to have the opportunity to skip optional 
> dependencies
> {code:xml}
> <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>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to