Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven error and javax.xml.bind.DatatypeConverter with jdk10 #24

Open
alxxthegeek opened this issue Jul 22, 2018 · 1 comment
Open

Maven error and javax.xml.bind.DatatypeConverter with jdk10 #24

alxxthegeek opened this issue Jul 22, 2018 · 1 comment

Comments

@alxxthegeek
Copy link

If you get the error
maven Source option 5 is no longer supported. Use 6 or later. [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.

Add the following to the properties
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>

That fixes the problem for jdk8.

For jdk10
The example builds but gives a runtime exception
An exception occured while executing the Java class. null: InvocationTargetException: javax/xml/bind/DatatypeConverter: javax.xml.bind.DatatypeConverter

as javax.xml.bind.DatatypeConverter is removed in JDK9 onwards

@alxxthegeek alxxthegeek changed the title Maven errors Maven error and javax.xml.bind.DatatypeConverter with jdk10 Jul 22, 2018
@montynet
Copy link

montynet commented Jan 6, 2019

Add this dependency in your pom file.
<dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants