From 5efca6fa1e07cfdaa444e67dae7757c233ad7289 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Wed, 24 Jun 2020 23:03:56 +0300 Subject: [PATCH] Fix build with Java 11 --- apache-commons-parent.spec | 3 +++ 1 file changed, 3 insertions(+) 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