[java] Compile test sources only once

In the parent pom, the "default-testCompile" execution
is disabled in favor of "java-test-compile". Just
override the configuration for "java-test-compile"
instead of re-adding the default execution.
This commit is contained in:
Andreas Dangel 2022-12-08 21:06:07 +01:00
parent cf2cf60fb0
commit ac7373bbc0
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3

View File

@ -63,18 +63,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-testCompile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
<execution>
<id>java-test-compile</id>
<!-- Have test-compile produce parameter metadata for reflection tests -->
<configuration>
<parameters>true</parameters>
</configuration>
</execution>
</execution>
</executions>
</plugin>