【发布时间】:2015-05-14 14:23:13
【问题描述】:
我通过传递参数 -XDignore.symbol.file
使用 javac 编译一个类同样,我想在 maven pom.xml 中使用相同的。
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
<compilerArgument>-Xlint:all -XDignore.symbol.file</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
以上配置不工作。有什么想法???
【问题讨论】:
-
顺便说一句:你使用哪个版本的 maven-compiler-plugin?
标签: maven maven-2 maven-3 pom.xml