Fix JDK11 build by adding dependency for javax.xml.bind.

This commit is contained in:
Markku Korkeala 2020-07-23 14:31:29 +03:00
parent 9a419baa57
commit 471646bd01

View File

@ -4,7 +4,7 @@
Name: jboss-jaxrs-2.0-api
Version: 1.0.0
Release: 11%{?dist}
Release: 12%{?dist}
Summary: JAX-RS 2.0: The Java API for RESTful Web Services
# ASL 2.0 src/main/java/javax/ws/rs/core/GenericEntity.java
License: (CDDL or GPLv2 with exceptions) and ASL 2.0
@ -14,6 +14,7 @@ Source0: https://github.com/jboss/jboss-jaxrs-api_spec/archive/%{oname}-%{
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildArch: noarch
@ -32,6 +33,9 @@ This package contains javadoc for %{name}.
# Unneeded plugin
%pom_remove_plugin :maven-source-plugin
# Fix JDK11 build, add missing javax.xml.bind
%pom_add_dep javax.xml.bind:jaxb-api
%mvn_file :%{oname} %{name}
# remove after upgrading narayana
@ -51,6 +55,9 @@ This package contains javadoc for %{name}.
%license LICENSE
%changelog
* Thu Jul 23 2020 Markku Korkeala <markku.korkeala@iki.fi> - 1.0.0-12
- Fix JDK11 build by adding dependency for javax.xml.bind.
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.0.0-11
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11