James created MTOOLCHAINS-34: -------------------------------- Summary: Toolchains breaks annotation processing Key: MTOOLCHAINS-34 URL: https://issues.apache.org/jira/browse/MTOOLCHAINS-34 Project: Maven Toolchains Plugin Issue Type: Bug Reporter: James Attachments: toolchains.xml
The following will work... Clone: [https://github.com/cloudogu/annotation-processors] Then: 1: cd part-1-maven 2: mvn clean install. You will see: [*INFO*] found @Log at com.cloudogu.blog.annotationprocessor.sample.Hello In the output to indicate that it works. Now, if you clone my forked repo: [https://github.com/jimhooker2002/annotation-processors] You'll see the following diff: [https://github.com/cloudogu/annotation-processors/compare/master...jimhooker2002:master] And note that it will no longer work (the log message no longer appears). In my forked repo, if you comment out the maven-toolchains-plugin, it will start to work again. So, it looks as though toolchains plugin is preventing the annotation processing from running somehow. My setup: mvn -v *Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T20:00:29+01:00)* Maven home: /Users/james.hooker/Applications/apache-maven-3.6.1 Java version: 11.0.4, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home Default locale: en_GB, platform encoding: UTF-8 OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac" My toolchains.xml is attached -- This message was sent by Atlassian Jira (v8.3.4#803005)