Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0
-
None
-
None
Description
When compiling with the Java-11 compiler (although source/binary version is set to 1.8), the compilation fails with:
[ERROR] /home/shalomc/workspace/opensource/commons-scxml/src/test/java/org/apache/commons/scxml2/w3c/W3CTests.java:[31,22] package javax.xml.bind does not exist [ERROR] /home/shalomc/workspace/opensource/commons-scxml/src/test/java/org/apache/commons/scxml2/w3c/W3CTests.java:[139,6] cannot find symbol [ERROR] symbol: class XmlRootElement [ERROR] location: class org.apache.commons.scxml2.w3c.W3CTests
Since other parts of my project need to be compiled with Java 11, and commons SCXML is compiled from source every time, this is problematic.
The fix is to add dependency:
<dependency> <groupId>jakarta.xml.bind</groupId> <artifactId>jakarta.xml.bind-api</artifactId> <version>2.3.3</version> </dependency>