Make ITs JDK9 ready. maven-ant-plugin uses value of source/target parameter of maven...
authorRobert Scholte <rfscholte@apache.org>
Fri, 25 Sep 2015 17:16:34 +0000 (17:16 +0000)
committerRobert Scholte <rfscholte@apache.org>
Fri, 25 Sep 2015 17:16:34 +0000 (17:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1705332 13f79535-47bb-0310-9956-ffa450edef68

src/it/ear-it/pom.xml
src/it/plugin-it/pom.xml
src/it/single-test-it/pom.xml
src/it/system-scope-dep/pom.xml
src/it/test-custom-selector-it/pom.xml
src/it/test-default-selector-it/pom.xml
src/it/webapp-it/pom.xml

index ffbd348..3283f2d 100644 (file)
@@ -111,4 +111,27 @@ under the License.
       <url>scp://local.company.com/websites/project.company.com/</url>
     </site>
   </distributionManagement>
+
+  <profiles>
+    <profile>
+      <id>jdk9</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>1.6</source>
+                <target>1.6</target>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles>
 </project>
index be5abff..d219898 100644 (file)
@@ -67,4 +67,27 @@ under the License.
   <properties>
     <build.compiler>extJavac</build.compiler>
   </properties>
+
+  <profiles>
+    <profile>
+      <id>jdk9</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>1.6</source>
+                <target>1.6</target>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles>  
 </project>
index 162e7ae..aaf4942 100644 (file)
@@ -91,4 +91,26 @@ under the License.
     <build.compiler>extJavac</build.compiler>
   </properties>
 
+  <profiles>
+    <profile>
+      <id>jdk9</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>1.6</source>
+                <target>1.6</target>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles>
 </project>
index c367a3e..b5f53e3 100644 (file)
@@ -70,5 +70,25 @@ under the License.
         </dependency>
       </dependencies>
     </profile>
+    <profile>
+      <id>jdk9</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>1.6</source>
+                <target>1.6</target>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
   </profiles>
 </project>
index 40a0f34..eb00160 100644 (file)
@@ -104,4 +104,26 @@ under the License.
     <build.compiler>extJavac</build.compiler>
   </properties>
 
+  <profiles>
+    <profile>
+      <id>jdk9</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>1.6</source>
+                <target>1.6</target>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles> 
 </project>
index 6c86db8..15a76a4 100644 (file)
@@ -91,4 +91,26 @@ under the License.
     <build.compiler>extJavac</build.compiler>
   </properties>
 
+  <profiles>
+    <profile>
+      <id>jdk9</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>1.6</source>
+                <target>1.6</target>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles>
 </project>
index 2e638a7..4153d85 100644 (file)
@@ -81,4 +81,27 @@ under the License.
       </plugin>
     </plugins>
   </build>
+
+  <profiles>  
+    <profile>
+      <id>jdk9</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>1.6</source>
+                <target>1.6</target>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles>  
 </project>