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.

This commit is contained in:
Marco Fargetta 2023-11-30 18:52:58 +01:00 committed by Endi S. Dewata
parent 305777fbb1
commit 5dff8a23c1
1 changed files with 1 additions and 1 deletions

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-source-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)
Requires: %{name}-bom = %{version}-%{release}