Incremental compile doesn't seem to work

3 views
Skip to first unread message

Don Noit

unread,
Feb 4, 2026, 6:32:35 PM (3 days ago) Feb 4
to GMavenPlus
I'm using GMavenplus 3.0.2 with maven-compiler-plugin to compile in a project with both Groovy and Java code.  

Even if there are no code changes, I always see the same output during the ocmpile phase:

[INFO] --- gmavenplus-plugin:3.0.2:compile (default) @ z-api ---
[INFO] Using isolated classloader, without GMavenPlus classpath.
[INFO] Using Groovy 4.0.22 to perform compile.
[INFO] invokedynamic enabled.
[INFO] Parallel parsing enabled.
[INFO] Compiled 4159 files.

I'm wondering: Does GMavenPlus not support incremental compiles, or am I missing something obvious? Would appreciate any pointers.

Excerpt from my POM.xml:
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <version>3.11.0</version>
 <configuration>
  <useIncrementalCompilation>true</useIncrementalCompilation>
  <source>17</source>
  <target>17</target>
 </configuration>
</plugin>
<plugin>
  <groupId>org.codehaus.gmavenplus</groupId>
  <artifactId>gmavenplus-plugin</artifactId>
  <version>3.0.2</version>
  <configuration>
  <targetBytecode>17</targetBytecode>
  <jvmArgs>
  <jvmArg>--add-opens</jvmArg>
  <jvmArg>java.base/java.lang=ALL-UNNAMED</jvmArg>
  </jvmArgs>
  </configuration>
<executions>
  <execution>
   <goals>
   <goal>addSources</goal>
   <goal>addTestSources</goal>
   <goal>compile</goal>
   <goal>compileTests</goal>
  </goals>
  </execution>
</executions>
</plugin>

Reply all
Reply to author
Forward
0 new messages