Merge pull request #2327 from ctubbsii/fix-maven-compiler-plugin

Use latest maven-compiler-plugin (2.6.0)
pull/2348/head
Adam Cozzette 8 years ago committed by GitHub
commit d584321fb4
  1. 2
      java/compatibility_tests/v2.5.0/protos/pom.xml
  2. 33
      java/core/pom.xml
  3. 32
      java/lite/pom.xml
  4. 2
      java/pom.xml
  5. 22
      java/util/pom.xml

@ -28,7 +28,7 @@
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version> <version>3.6.0</version>
<configuration> <configuration>
<source>1.6</source> <source>1.6</source>
<target>1.6</target> <target>1.6</target>

@ -92,11 +92,34 @@
<!-- Add the generated sources to the build --> <!-- Add the generated sources to the build -->
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <groupId>org.codehaus.mojo</groupId>
<configuration> <artifactId>build-helper-maven-plugin</artifactId>
<generatedSourcesDirectory>${generated.sources.dir}</generatedSourcesDirectory> <executions>
<generatedTestSourcesDirectory>${generated.testsources.dir}</generatedTestSourcesDirectory> <execution>
</configuration> <id>add-generated-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${generated.sources.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.dir}</source>
</sources>
</configuration>
</execution>
</executions>
</plugin> </plugin>
<!-- OSGI bundle configuration --> <!-- OSGI bundle configuration -->

@ -75,11 +75,39 @@
</plugin> </plugin>
<!-- Only compile a subset of the files --> <!-- 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> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<generatedSourcesDirectory>${generated.sources.lite.dir}</generatedSourcesDirectory>
<generatedTestSourcesDirectory>${generated.testsources.lite.dir}</generatedTestSourcesDirectory>
<includes> <includes>
<include>**/AbstractMessageLite.java</include> <include>**/AbstractMessageLite.java</include>
<include>**/AbstractParser.java</include> <include>**/AbstractParser.java</include>

@ -94,7 +94,7 @@
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version> <version>3.6.0</version>
<configuration> <configuration>
<source>1.6</source> <source>1.6</source>
<target>1.6</target> <target>1.6</target>

@ -79,12 +79,24 @@
</executions> </executions>
</plugin> </plugin>
<!-- Add the generated test sources to the build -->
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <groupId>org.codehaus.mojo</groupId>
<configuration> <artifactId>build-helper-maven-plugin</artifactId>
<!-- Add the generated test sources to the build --> <executions>
<generatedTestSourcesDirectory>${generated.testsources.dir}</generatedTestSourcesDirectory> <execution>
</configuration> <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> </plugin>
<!-- Configure the OSGI bundle --> <!-- Configure the OSGI bundle -->

Loading…
Cancel
Save