#5 Fix JVM as 1.8.0 as package cannot be built with Java 9 and above
Merged 3 years ago by akurtakov. Opened 3 years ago by jjohnstn.
rpms/ jjohnstn/xbean master  into  master

file modified
+7 -1
@@ -5,7 +5,7 @@ 

  Name:           xbean

  Summary:        Java plugin based web server

  Version:        4.15

- Release:        2%{?dist}

+ Release:        3%{?dist}

  License:        ASL 2.0

  

  URL:            http://geronimo.apache.org/xbean/
@@ -27,6 +27,8 @@ 

  BuildRequires:  mvn(org.ow2.asm:asm)

  BuildRequires:  mvn(org.ow2.asm:asm-commons)

  BuildRequires:  mvn(org.slf4j:slf4j-api)

+ # This package cannot be built with JDK 9 and above

+ BuildRequires:  java-1.8.0-openjdk-devel

  

  %if %{with equinox}

  BuildRequires:  mvn(org.eclipse:osgi)
@@ -162,6 +164,7 @@ 

  

  

  %build

+ export JAVA_HOME=/usr/lib/jvm/java-1.8.0

  %mvn_build

  

  
@@ -191,6 +194,9 @@ 

  

  

  %changelog

+ * Thu Jun 25 2020 Jeff Johnston <jjohnstn@redhat.com> - 4.15-3

+ - Fix JVM as 1.8.0 as package cannot be built with Java 9 and above

+ 

  * Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.15-2

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

  

Setting JVM to 1.8.0 because there is code that relies on sun.misc.URLClassPath which was removed in Java 9

Pull-Request has been merged by akurtakov

3 years ago