Fix compile on newer mvn
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/batik/trunk@1873898 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index b42c84a..c6636fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -116,10 +116,8 @@
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
- <executable>${jdk.path}/bin/javac</executable>
- <fork>true</fork>
- <compilerArgs></compilerArgs>
- <showWarnings>false</showWarnings>
+ <compilerArgs></compilerArgs>
+ <showWarnings>false</showWarnings>
</configuration>
</plugin>
<plugin>
@@ -150,7 +148,35 @@
</plugins>
</pluginManagement>
</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>
+ <version>${compiler.version}</version>
+ <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>
+
<scm>
<connection>scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/</connection>
<url>scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/</url>