I have two files in my directory like this:
a.b.so
a.so
I want to delete only a.b.so.
So here is my Maven clean plugin entry in my pom.xml file:
maven-clean-plugin
auto-clean
prepare-package
clean
true
${project.build.directory}/libs/x86
*.so
a.so
false
true
Just for some backgorund of this, file a.b.so gets downloaded as a dependency then it gets renamed into a.so just before i execute the above entry. I copy file using maven depedency plugin. I don't know whether this affects the not deletion of a.b.so
In turn it always delete a.so. Even I tried including **/*, but it deletes a.so every time.
It never deletes a.b.so.
解决方案
For this particular example, you can try to replace this part:
*.so
a.so
with
a.b.so