Fix build with Java 11

This commit is contained in:
Alexander Kurtakov 2020-06-24 23:03:56 +03:00
parent 0f696f8d8d
commit 5efca6fa1e

View File

@ -9,6 +9,7 @@ BuildArch: noarch
Source0: https://github.com/apache/commons-parent/archive/commons-parent-%{version}.tar.gz Source0: https://github.com/apache/commons-parent/archive/commons-parent-%{version}.tar.gz
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: java-11-openjdk-devel
BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-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 done
%build %build
export JAVA_HOME=/usr/lib/jvm/java-11
%mvn_build %mvn_build
%install %install
export JAVA_HOME=/usr/lib/jvm/java-11
%mvn_install %mvn_install
%files -f .mfiles %files -f .mfiles