Hi,

I've never used this my self yet so I can't give you a definitive
answer, but looking at the assembly descriptor reference [1] there
are the following options available to customize the dependency
unpacking:

  - moduleSet/binaries/unpackOptions/{includes,excludes}
  - moduleSet/binaries/.../dependencySet/unpackOptions/{includes,excludes}
  - moduleSet/binaries/{includes,excludes}
  - moduleSet/binaries/.../dependencySet/{includes,excludes}

-Tim

[1] http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

Am Mon, 8 Oct 2007 15:10:35 -0700 (PDT)
schrieb Lara Brian <[EMAIL PROTECTED]>:

> Hi All,
>   Is it possible to exclude a perticular directory from the
> dependency artifact. For example my dependency artifact has dir1,
> dir2 and dir3 in it and i want to exlcude dir2 from being included in
> my final assembly. My assembly descriptor looks as follows.
> <moduleSets> <moduleSet>   
>   
>    <includes>
>     <include>*:xmar:*</include>
>    </includes>
>    
>    <binaries>
>     <outputDirectory>local/model/${artifactId}</outputDirectory>
>     <outputFileNameMapping></outputFileNameMapping>
>     <unpack>true</unpack>
>     
>     <dependencySets>
>      <!-- Include transitive xmars too -->
>      <includeDependencies>false</includeDependencies>
>      
>      <!-- Pull all the dependent xmar and put them in local
> directory--> <dependencySet>
>       <outputDirectory>local/model/${artifactId}</outputDirectory>
>       <outputFileNameMapping></outputFileNameMapping>
>       <includes>
>        <include>*:xmar:*</include>
>       </includes>
>       <unpack>true</unpack>
>       <scope>runtime</scope>
>      </dependencySet>
>      
>     </dependencySets>
>    </binaries>
>   </moduleSet>
>  </moduleSets>
>    
>    
>   thanks for any help or pointer.
> 
>        
> ---------------------------------
> Don't let your dream ride pass you by.    Make it a reality with
> Yahoo! Autos. 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to