0
我在我的目录下两个文件是这样的:Maven的干净不删除文件
- a.b.so
- a.so
我只想a.b.so
删除。
因此,这里是我的pom.xml
文件我的Maven插件清理进入:
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>auto-clean</id>
<phase>prepare-package</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${project.build.directory}/libs/x86</directory>
<includes>
<include>*.so</include>
</includes>
<excludes>
<exclude>a.so</exclude>
<excludes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
只是为了这一些backgorund,文件ABSO被下载的依赖,然后它被改名成。所以就在我执行上面的条目之前。我使用maven depedency插件复制文件。我不知道这是否会影响未删除的a.b.so
反过来它总是删除a.so
。即使我尝试了包括**/*
,但它每次删除a.so
。
它从不删除a.b.so
。
谢谢你的答案,但没有奏效。 – saurav 2014-09-13 10:18:52