2013-04-25 12 views
5
<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> 

To mój assemble.xml i src/main zawiera kilka folderów, chcę wykluczyć niektóre foldery jak src/main/DML, ale nie wyklucza folderu.Jak wykluczyć niektóre foldery podczas tworzenia pliku zip przez Maven

Odpowiedz

13

Wypróbuj za wyklucza:

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

pasujące do całej zawartości folderu i jego podfolderów

UPDATE: oh przepraszam, twoje wykluczenie są w stosunku do katalogu, więc to, co chcesz:

<excludes> 
      <exclude>dml/**</exclude> 
    </excludes> 
Powiązane problemy