Open hohwille opened 3 years ago
Is there any workaround for the issue except downgrading JDK?
The XML API has been deprecated and removed from the JRE since Java 9, because it was too heavy and better suited to be an external library/module. That said: You need to define a dependency onto javax.xml.bind:jaxb-api:2.3.1
to have it back in your classpath, if you are using JDK 9 or above, e.g.
<profile>
<id>JDK9+</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.simpligility.maven.plugins</groupId>
<artifactId>android-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
To me it seems this plugin does not work with Java11 but only unsupported and outdated Java8 versions... https://github.com/simpligility/android-maven-plugin/blob/master/.travis.yml#L5
Could you consider adding support for JDK 11? Hint: https://github.com/devonfw/devon4j/blob/master/documentation/guide-jdk.asciidoc#upgrading