构建过程因 Maven 包失败

发布于 2024-09-01 02:16:34 字数 271 浏览 7 评论 0原文

我正在开发一个 Maven 项目来构建一个简单的实用程序 api。相同的源代码在我的办公室 win XP 机器上构建时是成功的。现在我在家并在 CentOS 机器上使用相同的源代码。这里构建过程奇怪地失败了。它报告的错误理想地符合我的观点,我们应该发出警告消息。如下图所示。

[ERROR] com.vsd.Provider:[12,240] The import java.util.Set is never used

您能给我一些建议吗?我可以在哪里查看?

I am working on a maven project to build a simple utility api. The same source code when build on my office win XP machine, was successful. Now i am at home and working with same source code on CentOS machine. Here the build process failed strangely. The error it reports is ideally in my points should we warning message. As shown below.

[ERROR] com.vsd.Provider:[12,240] The import java.util.Set is never used

Can you please give me some idea, where can I look into?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

帝王念 2024-09-08 02:16:34

It's hard to say without seeing your POM but the error reported looks like a violation of the Checkstyle rule UnusedImports (or something equivalent). Maybe this verification is triggered because of a setting defined in a profile that is not activated on your CentOS machine (as I said, hard to say). Anyway, to fix it, remove the unused import.

会傲 2024-09-08 02:16:34

问题出在用于编译的插件上,这是一个如下所示的错误。

http://jira.codehaus.org/browse/MCOMPILER-118

The problem was with the plug in being used to compile, It was a bug a shown below.

http://jira.codehaus.org/browse/MCOMPILER-118

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文