我在 maven-compiler-plugin 3.2 中使用了它,它工作得很好,但是当我升级到 3.3 时,排除不再工作。是什么改变打破了我的排除?
情况:
这是我的包裹列表。我想排除所有以 bammerbom.ultimatecore.spongeapi 开头的包,因为它们是 WIP。这在 maven-compiler-plugin 3.2 上有效,但更新后失败,堆栈跟踪如下。 (所有错误都存在,但这不是问题,因为我还不想编译这个包。)
插件的 Pom.xml:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2 (Wanted to update to 3.3)</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<excludes>
<exclude>bammerbom/ultimatecore/spongeapi/</exclude>
</excludes>
</configuration>
</plugin>
堆栈跟踪:
最佳答案
尝试在末尾添加一些通配符
<excludes>
<exclude>bammerbom/ultimatecore/spongeapi/**</exclude>
</excludes>
关于java - Maven-compiler-plugin 排除在 3.3 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29520516/