Fix version for stax-ex build requirement

"stax-ex" is present in version 1.7.7 from AppStream and in
version 2.1.0 as part of jaxb module and if version is not specified the
latest get installed.

The jaxb module is built using java 11 (it is required) but
the glassfish-jaxb is built using java 8 so it fails.

Limiting the stax-ex version to < 2.0 will install the 1.7.7
and the package can be built.

Resolves: https://issues.redhat.com/browse/RHEL-30061
This commit is contained in:
Marco Fargetta 2023-11-30 18:52:58 +01:00 committed by Endi S. Dewata
parent 305777fbb1
commit 5dff8a23c1

View File

@ -20,7 +20,7 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.jvnet.staxex:stax-ex) BuildRequires: mvn(org.jvnet.staxex:stax-ex) < 2.0
BuildRequires: mvn(relaxngDatatype:relaxngDatatype) BuildRequires: mvn(relaxngDatatype:relaxngDatatype)
Requires: %{name}-bom = %{version}-%{release} Requires: %{name}-bom = %{version}-%{release}