How to exclude some of the folders while creating zip file through maven -


<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"      xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembl/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">     <id>bin</id>     <basedirectory>/</basedirectory>     <formats>       <format>zip</format>     </formats>     <filesets>       <fileset>          <directory>src/main</directory>          <outputdirectory>/</outputdirectory>          <excludes>             <exclude>src/main/dml</exclude>          </excludes>       </fileset>     </filesets>     </assembly> 

this assemble.xml , src/main contains several folders, want exclude folders src/main/dml not excluding folder.

try excludes:

  <excludes>             <exclude>src/main/dml/**</exclude>   </excludes> 

to match of contents of folder , subfolders

update: oh i'm sorry, excludes relative directory, want

  <excludes>             <exclude>dml/**</exclude>   </excludes> 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -