Skip to content

javax/xml/bind/annotation/XmlSchema missing with Java 10 #778

Closed

Description

@crummy

I believe Java 9+ is unsupported but was hoping to have this error documented at least. I have an Android task that uses android-maven-plugin in the midst of a larger regular Java product. I'd like to use Java 10 elsewhere and am trying it out to see what breaks - currently it's our Android task. Here's the output I get:

[ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.5.0:generate-sources (default-generate-sources) on project toolkit: Execution default-generate-sources of goal com.simpligility.maven.plugins:android-maven-plugin:4.5.0:generate-sources failed: A required class was missing while executing com.simpligility.maven.plugins:android-maven-plugin:4.5.0:generate-sources: javax/xml/bind/annotation/XmlSchema
[ERROR] -----------------------------------------------------
[ERROR] realm =    extension>com.simpligility.maven.plugins:android-maven-plugin:4.5.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/root/.m2/repository/com/simpligility/maven/plugins/android-maven-plugin/4.5.0/android-maven-plugin-4.5.0.jar
[...]
[ERROR] urls[83] = file:/root/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.7/plexus-compiler-javac-2.7.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: javax.xml.bind.annotation.XmlSchema

I've tried export MAVEN_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee' before running mvn package (as this fixed sdkmanager) but this didn't help.

Activity

  1. changed the title [-]javax/xml/bind/annotation/XmlSchema missing with Java 9[/-] [+]javax/xml/bind/annotation/XmlSchema missing with Java 10[/+] on Aug 16, 2018
  2. mosabua commented on May 3, 2019

    @mosabua
    Member

    Yes .. Java 9+ is not supported. If anything it might go to 11 but not sure at this stage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions