xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sstei...@apache.org
Subject svn commit: r1873897 - /xmlgraphics/commons/trunk/pom.xml
Date Tue, 11 Feb 2020 12:29:01 GMT
Author: ssteiner
Date: Tue Feb 11 12:29:01 2020
New Revision: 1873897

URL: http://svn.apache.org/viewvc?rev=1873897&view=rev
Log:
Fix compile on newer mvn

Modified:
    xmlgraphics/commons/trunk/pom.xml

Modified: xmlgraphics/commons/trunk/pom.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/pom.xml?rev=1873897&r1=1873896&r2=1873897&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/pom.xml (original)
+++ xmlgraphics/commons/trunk/pom.xml Tue Feb 11 12:29:01 2020
@@ -88,8 +88,6 @@
           <configuration>
             <source>${java.version}</source>
             <target>${java.version}</target>
-            <executable>${jdk.path}/bin/javac</executable>
-            <fork>true</fork>
           </configuration>
         </plugin>
         <plugin>
@@ -174,6 +172,33 @@
       </testResource>
     </testResources>
   </build>
+  
+  <profiles>
+    <profile>
+      <id>custom-javac</id>
+      <activation>
+        <property>
+          <name>jdk.path</name>
+        </property>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <source>${java.version}</source>
+                <target>${java.version}</target>
+                <executable>${jdk.path}/bin/javac</executable>
+                <fork>true</fork>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+  </profiles>  
 
   <reporting>
     <plugins>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message