You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Nikolas Falco (JIRA)" <ji...@apache.org> on 2016/10/06 16:09:20 UTC

[jira] [Updated] (MASSEMBLY-832) Consider dependency optional attribute when gather dependencies

     [ https://issues.apache.org/jira/browse/MASSEMBLY-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikolas Falco updated MASSEMBLY-832:
------------------------------------
    Description: 
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}

  was:
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}


> 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)