gpt4 book ai didi

java - Maven-compiler-plugin 排除在 3.3 中失败

转载 作者:行者123 更新时间:2023-12-02 04:47:51 25 4
gpt4 key购买 nike

我在 maven-compiler-plugin 3.2 中使用了它,它工作得很好,但是当我升级到 3.3 时,排除不再工作。是什么改变打破了我的排除?

情况:

Packages

这是我的包裹列表。我想排除所有以 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

最佳答案

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

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

Maven - exclude folder from build

关于java - Maven-compiler-plugin 排除在 3.3 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29520516/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com