0

我在 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>

堆栈跟踪:

http://pastebin.com/zp8UqRiB

4

1 回答 1

2

尝试在末尾添加一些通配符

<excludes>
    <exclude>bammerbom/ultimatecore/spongeapi/**</exclude>
</excludes>

Maven - 从构建中排除文件夹

于 2015-04-08T17:59:54.247 回答