Nikolas Falco created MASSEMBLY-832:
---------------------------------------

             Summary: 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
(v6.3.4#6332)

Reply via email to