Setup Java 6 annotation processing configuration for eclipse compiler with maven

前端 未结 3 398
囚心锁ツ
囚心锁ツ 2021-01-31 05:59

What\'s the best way to setup the eclipse project compiler configuration for Java 6 annotation processors?

My solution is to setup the org.eclipse.jdt.apt.core.pre

3条回答
  •  清酒与你
    2021-01-31 06:17

    There is a simpler solution in Eclipse Juno (I'm not sure about previous versions). In Preferences / Maven / Annotation Processing there are three modes for annotation processing. It is disabled by default, but I've tested both other options and worked like a charm for me. This way, you don't need to configure APT processing for every project or modify its pom.xml.

提交回复
热议问题