【发布时间】:2014-07-10 02:48:48
【问题描述】:
我正在尝试使用mave-compiler-plugin 添加调试符号(这样我就可以访问方法参数名称)。 按照here 可以找到的可用配置, 这是我的 maven-compiler-plugin 配置
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<debug>true</debug>
<debugLevel>lines,vars,source</debugLevel>
</configuration>
</plugin>
直到现在,我都没有成功。
有人可以告诉我如何使用 maven 添加调试符号吗?
【问题讨论】:
-
debugLevel的合法值为none、lines、vars和source(即 notsources)。 -
THX,我用来源(而不是来源......)更新了问题。仍然没有进展。
标签: java maven maven-compiler-plugin