aws-samples / aws-java-sample

Sample project to demonstrate usage of the AWS SDK for Java
Apache License 2.0
231 stars 339 forks source link

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

Open alxxthegeek opened 6 years ago

alxxthegeek commented 6 years ago

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

1.6 1.6 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
montynet commented 5 years ago

Add this dependency in your pom file. `

javax.xml.bind
        <artifactId>jaxb-api</artifactId>
        <version>2.3.0</version>
    </dependency>`