2
自从去年夏天以来,Eclipse支持一种功能,可以在每个构建路径中抑制不重要的代码问题(described here)。如何从maven添加eclipse的构建路径选项
当您从GUI中设置此选项时,我发现这在项目的.classpath文件中反映如下。
<classpathentry including="**/*.java" kind="src" path="src/main/java"/>
<classpathentry including="**/*.java" kind="src" path="target/generated-sources/proto">
<attributes>
<attribute name="ignore_optional_problems" value="true"/>
</attributes>
</classpathentry>
我有一个现有的基于Maven的项目,我想配置它,这样,当我运行 MVN日食:日食所生成的.classpath文件包含上面的选项与生成的源buildpaths码。
我检查了eclipse mojo的所有选项,我一直无法弄清楚如何做到这一点。
我该如何做到这一点?