Fix build with Java 11
This commit is contained in:
parent
0f696f8d8d
commit
5efca6fa1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user