Netbeans& Maven:不同的编译行为 [英] Netbeans & Maven: different compilation behavior

查看:123
本文介绍了Netbeans& Maven:不同的编译行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Netbeans和Maven项目。

在某些情况下,Netbeans向我显示编译失败(红色气球)但Maven编译所有内容没有任何问题!

I am using Netbeans and Maven projects.
In some case Netbeans show me compilation failures (red ballon) BUT Maven compile everything without any problem!

造成这种差异的原因是什么?
我已经检查过两者都使用相同的JDK版本。

What can be the reason of this difference. I already checked that both are using the same JDK version.

推荐答案

一个可能的原因可能是你没有在您的net beans类路径中添加了所需的jar。但是jar正在你的maven pom.xml中列出

One possible reason could be that you have not added the required jar in your net beans class path. But the jar is being listed in your maven pom.xml

这篇关于Netbeans& Maven:不同的编译行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆