From 3a86cbf3b1e738d0f762259ea7e3d92996292a61 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Jun 24 2020 20:03:56 +0000 Subject: Fix build with Java 11 --- diff --git a/apache-commons-parent.spec b/apache-commons-parent.spec index bca5c74..ffcf30d 100644 --- a/apache-commons-parent.spec +++ b/apache-commons-parent.spec @@ -9,6 +9,7 @@ BuildArch: noarch Source0: https://github.com/apache/commons-parent/archive/commons-parent-%{version}.tar.gz BuildRequires: maven-local +BuildRequires: java-11-openjdk-devel BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) @@ -42,9 +43,11 @@ for profile in animal-sniffer japicmp jacoco cobertura clirr; do done %build +export JAVA_HOME=/usr/lib/jvm/java-11 %mvn_build %install +export JAVA_HOME=/usr/lib/jvm/java-11 %mvn_install %files -f .mfiles