aboutsummaryrefslogtreecommitdiffhomepage
path: root/java/util/pom.xml
diff options
context:
space:
mode:
authorGravatar Christopher Tubbs <ctubbsii@apache.org>2016-11-04 02:11:55 -0400
committerGravatar Christopher Tubbs <ctubbsii@apache.org>2016-11-04 02:11:55 -0400
commiteb7f3a3ad1e89ab5de0846c354bbc682e63bd837 (patch)
tree2a1046da1fa5e3f3e89c9bb9edc722e451100136 /java/util/pom.xml
parent7bd11fcb59872b4448b13a1bdfc173428fdfb8f6 (diff)
Use latest maven-compiler-plugin (2.6.0)
* Uses build-helper-maven-plugin to add generated sources to the classpath * Fixes an issue building with newer versions of the maven-compiler-plugin (See https://issues.apache.org/jira/browse/MCOMPILER-240)
Diffstat (limited to 'java/util/pom.xml')
-rw-r--r--java/util/pom.xml22
1 files changed, 17 insertions, 5 deletions
diff --git a/java/util/pom.xml b/java/util/pom.xml
index 6b07bcdf..0ccfc848 100644
--- a/java/util/pom.xml
+++ b/java/util/pom.xml
@@ -79,12 +79,24 @@
</executions>
</plugin>
+ <!-- Add the generated test sources to the build -->
<plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <!-- Add the generated test sources to the build -->
- <generatedTestSourcesDirectory>${generated.testsources.dir}</generatedTestSourcesDirectory>
- </configuration>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-generated-test-sources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>add-test-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${generated.testsources.dir}</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
<!-- Configure the OSGI bundle -->