Stefan Röck created MCOMPILER-511: ------------------------------------- Summary: proc:only doesn't work as expected Key: MCOMPILER-511 URL: https://issues.apache.org/jira/browse/MCOMPILER-511 Project: Maven Compiler Plugin Issue Type: Bug Affects Versions: 3.10.1 Environment: Windows, Tested with JDK 1.8, 11, 17 Reporter: Stefan Röck
According to the docs [https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#proc,] *proc:only* should only process annotation processors but *not* trigger compilation. However, files are always compiled with the following config: {code} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.10.1</version> <executions> <execution> <id>process</id> <phase>generate-sources</phase> <goals> <goal>compile</goal> </goals> <configuration> <annotationProcessors> <processor>org.immutables.processor.ProxyProcessor</processor> </annotationProcessors> <proc>only</proc> </configuration> </execution> </executions> </plugin> {code} See small reproducer repo at https://github.com/stefanroeck/annotationtest -- This message was sent by Atlassian Jira (v8.20.10#820010)