构建过程因 Maven 包失败
我正在开发一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果没有看到 POM,很难说,但报告的错误看起来违反了 Checkstyle 规则 UnusedImports< /a> (或类似的东西)。也许此验证是由于配置文件中定义的设置未在您的 CentOS 计算机上激活而触发的(正如我所说,很难说)。无论如何,要修复它,请删除未使用的导入。
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.
问题出在用于编译的插件上,这是一个如下所示的错误。
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