\"Java Compiler\"->\"Errors/Warnings\" are going to .settings/org.ecli" />
开发者

Configuring Java Compiler->Errors/Warnings within pom.xml

I am looking for a solution for the stated problem. I already figured out, that the project-settings from "Project Properties"->"Java Compiler"->"Errors/Warnings" are going to .settings/org.eclipse.jdt.core.prefs (like e.g. org.eclipse.jdt.core.compiler.problem.enumIdentifier=error).

It would be great, if I could configure these settings in the projects pom.xml. Additionally it would be nice, to let the maven-compiler-plugin recognise these settings and apply them when beeing called on the command line or by a ci-tool.

Did anyone had the same problem yet?开发者_开发技巧

Kind regards, Avi


For one, maven would not understand eclipse compiler settings. Another, Eclipse uses ecj by default.

maven compiler plugin can be configured with the parameters that java compiler understands. It can take a few parameters as documented here, but doubtful if it meets the requirement you have.

Perhaps a candidate for a custom plugin?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜