In NetBeans 7.2, I\'m having trouble finding how to compile using -Xlint:unchecked in a Maven project. Under an Ant project, you can change compiler flags by going to Projec
I want to elaborate on @Nishant's answer. The compilerArgument tag needs to go inside plugin/configuration tag. Here is a full example:
compilerArgument
plugin/configuration
org.apache.maven.plugins maven-compiler-plugin 3.3 1.8 1.8 1.8 1.8 -Xlint:unchecked