summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2020-02-11 12:22:50 +0000
committerSimon Steiner <ssteiner@apache.org>2020-02-11 12:22:50 +0000
commitd1022f8e33ad8c234c13e7109fba2fe5797f5a64 (patch)
treed32dbfd374c470cedbae9ee0efa97c2230adb4ef
parentb696bac863370a617cb1a048228c4dd06dabddcc (diff)
downloadxmlgraphics-fop-d1022f8e33ad8c234c13e7109fba2fe5797f5a64.tar.gz
xmlgraphics-fop-d1022f8e33ad8c234c13e7109fba2fe5797f5a64.zip
Fix compile on newer mvn
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1873896 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--fop/build.xml2
-rw-r--r--pom.xml30
2 files changed, 29 insertions, 3 deletions
diff --git a/fop/build.xml b/fop/build.xml
index 527d9b21f..d4334a78f 100644
--- a/fop/build.xml
+++ b/fop/build.xml
@@ -615,7 +615,7 @@ list of possible build targets.
<include name="xmlgraphics-commons*.jar"/>
</fileset>
<target name="transcoder-pkg" depends="remove-cache" description="Generates the jar for the transcoder package for Batik">
- <exec executable="mvn" dir="${basedir}/..">
+ <exec executable="mvn" dir="${basedir}/.." failonerror="true">
<env key="MAVEN_OPTS" value="-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"/>
<arg value="clean"/>
<arg value="install"/>
diff --git a/pom.xml b/pom.xml
index 39cfacad4..b7881c7e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -84,8 +84,6 @@
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
- <executable>${jdk.path}/bin/javac</executable>
- <fork>true</fork>
</configuration>
</plugin>
<plugin>
@@ -107,6 +105,34 @@
</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.plugin.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/fop/trunk/</connection>
<url>scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/</url>