我的目录中有两个文件,如下所示:
- 绝对
- 如此
我只想删除a.b.so
.
所以这是我pom.xml
文件中的 Maven clean 插件条目:
<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>
只是为此,文件 abso 被下载为依赖项,然后在我执行上述条目之前将其重命名为 a.so。我使用 Maven 依赖插件复制文件。我不知道这是否影响不删除abso
反过来它总是删除a.so
. 即使我尝试过 include **/*
,但它a.so
每次都会删除。
它从不删除a.b.so
.