diff options
author | Christopher Tubbs <ctubbsii@apache.org> | 2016-11-04 02:11:55 -0400 |
---|---|---|
committer | Christopher Tubbs <ctubbsii@apache.org> | 2016-11-04 02:11:55 -0400 |
commit | eb7f3a3ad1e89ab5de0846c354bbc682e63bd837 (patch) | |
tree | 2a1046da1fa5e3f3e89c9bb9edc722e451100136 /java/lite | |
parent | 7bd11fcb59872b4448b13a1bdfc173428fdfb8f6 (diff) | |
download | protobuf-eb7f3a3ad1e89ab5de0846c354bbc682e63bd837.tar.gz protobuf-eb7f3a3ad1e89ab5de0846c354bbc682e63bd837.tar.bz2 protobuf-eb7f3a3ad1e89ab5de0846c354bbc682e63bd837.zip |
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/lite')
-rw-r--r-- | java/lite/pom.xml | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/java/lite/pom.xml b/java/lite/pom.xml index 9862cd94..d7b15097 100644 --- a/java/lite/pom.xml +++ b/java/lite/pom.xml @@ -76,10 +76,38 @@ <!-- Only compile a subset of the files --> <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-generated-sources</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>${generated.sources.lite.dir}</source> + </sources> + </configuration> + </execution> + <execution> + <id>add-generated-test-sources</id> + <phase>generate-test-sources</phase> + <goals> + <goal>add-test-source</goal> + </goals> + <configuration> + <sources> + <source>${generated.testsources.lite.dir}</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> - <generatedSourcesDirectory>${generated.sources.lite.dir}</generatedSourcesDirectory> - <generatedTestSourcesDirectory>${generated.testsources.lite.dir}</generatedTestSourcesDirectory> <includes> <include>**/AbstractMessageLite.java</include> <include>**/AbstractParser.java</include> |