diff --git a/jetty.spec b/jetty.spec index eb60da2..fedc6c2 100644 --- a/jetty.spec +++ b/jetty.spec @@ -50,7 +50,7 @@ Name: jetty Version: 9.4.31 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java Webserver and Servlet Container # Jetty is dual licensed under both ASL 2.0 and EPL 1.0, see NOTICE.txt @@ -612,6 +612,10 @@ find . -name "*.class" -exec rm {} \; %pom_disable_module aggregates/jetty-all +# Reflective use of classes that might not be present in the JDK should be optional OSGi-wise +%pom_xpath_inject "pom:configuration/pom:instructions" \ +"sun.misc;resolution:=optional,com.sun.nio.file;resolution:=optional,*" + # Use proper groupId for apache ant %pom_xpath_replace "pom:groupId[text()='ant']" "org.apache.ant" jetty-ant/pom.xml @@ -970,6 +974,10 @@ exit 0 %license LICENSE NOTICE.txt LICENSE-MIT %changelog +* Thu Aug 13 2020 Mat Booth - 9.4.31-2 +- Reflective use of classes that might not be present in the JDK should be + optional when expressed as OSGi dependencies + * Wed Aug 12 2020 Mat Booth - 9.4.31-1 - Update to latest upstream release