From 2b0f5ee3e8f167f1ddc8092932497b4f63ab26bb Mon Sep 17 00:00:00 2001 From: Gunnar Morling Date: Tue, 15 Mar 2016 23:01:58 +0100 Subject: [PATCH] #769 Expanding note on M2E annotation processing set-up --- .../src/main/asciidoc/mapstruct-reference-guide.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc index 8c967ec90..4d2b10045 100644 --- a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc +++ b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc @@ -93,6 +93,13 @@ Neat, isn't it? To double check that everything is working as expected, go to your project's properties and select "Java Compiler" -> "Annotation Processing" -> "Factory Path". The MapStruct processor JAR should be listed and enabled there. Any processor options configured via the compiler plug-in (see below) should be listed under "Java Compiler" -> "Annotation Processing". + +If the processor is not kicking in, check that the configuration of annotion processors through M2E is enabled. +To do so, go to "Preferences" -> "Maven" -> "Annotation Processing" and select "Automatically configure JDT APT". +Alternatively, specify the following in the `properties` section of your POM file: `jdt_apt`. + +Also make sure that your project is using Java 1.6 or later (project properties -> "Java Compiler" -> "Compile Compliance Level"). +It will not work with older versions. ==== [[configuration-options]]