Skip to content

[MTOOLCHAINS-34] Toolchains breaks annotation processing #98

Description

@jira-importer

James opened MTOOLCHAINS-34 and commented

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: cloudogu/annotation-processors@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"

 

/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java --version

openjdk 11.0.4 2019-07-16

OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)

OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)

Following files attached:

1: My toolchains.xml is attached 
2: mvn -X output when it works.

3: mvn -X output whet it doesn't work.

 


Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions