Some build requirements are provided from multiple modules and there
could be conflicts when the package is built.
Packages from jaxb module are newer but they are compiled with java11.
This package has to be compiled with java8 so the compilation was failing.
To get the correct package a version an upper limit is specified.
"fastinfoset" is present in version 1.2.13 in "pki-deps" module 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.2.13
and the package can be built.
"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.
"istack-commons-*" are present in version 2.21.9 from AppStream and in
version 4.1.1 as part of jaxb module and if version is not specified the
latest get installed.
The 4.1.1 from jaxb module is built using java 11 (it is required) but
the glassfish-jaxb is built using java 8 so it fails.
Limiting the istack-commons-* version to < 3.0 will install the 2.1.1
and the package can be built.