Netbeans & Maven: different compilation behavior
问题 I am using Netbeans and Maven projects. In some case Netbeans show me compilation failures (red ballon) BUT Maven compile everything without any problem! What can be the reason of this difference. I already checked that both are using the same JDK version. 回答1: 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 回答2: Try doing this, do an mvn install once from your command line in your project