jbosstools / m2e-apt

Maven integration with Eclipse JDT Annotation Processor Toolkit
39 stars 19 forks source link

Question: Could pom.xml force Eclipse to enable APT processing? #55

Closed michaldo closed 7 years ago

michaldo commented 7 years ago

If my project use annotation processor, Eclipse must have enabled APT processing to import project without errors.

Ideally, I could configure somewhere in my pom.xml that: "This project needs to work annotation proccessing enabled. When imported to Eclipse, turn on APT"

Is it possible?

fbricon commented 7 years ago

Yes, add a <m2e.apt.activation> Maven property to your (parent) pom.xml. See https://github.com/jbosstools/m2e-apt/issues/26#issue-26292488

michaldo commented 7 years ago

Works perfect. Thanks