最近,使用maven编译java项目想添加编译选项,例如;-Xlint,看看代码的一些基本的entity,找了很久,在apache maven 找到了相关说明,不多说了,直接上列子,一看就明白了。
[...] [...] [...][...] org.apache.maven.plugins maven-compiler-plugin3.8.1 -verbose -Xlint:all,-options,-path
参考:
Apache Maven Compiler Plugin – Pass Compiler Arguments



