Open
Description
Alexey Markevich opened MCOMPILER-543 and commented
like Surefire but for annotationProcessorPaths element. Case is:
- parent module:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>grpoup1</groupId>
<artifactId>artifact1</artifactId>
<version>version1</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
...
<profile>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths combine.children="append">
<path>
<groupId>group2</groupId>
<artifactId>artifact2</artifactId>
<version>version2</version>
</path>
</annotationProcessorPaths>
</configuration>
- child module:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<annotationProcessorPaths combine.self="override"/>
</configuration>
disable all processors. Goal is exclude only base one to have something like
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<annotationProcessorPathsExcludes>
<annotationProcessorPathsExclude>group1:artifact1:version1</annotationProcessorPathsExcludeude>
No further details from MCOMPILER-543