Skip to content

xml-beans doesn't compile with Java 11 #1

@chevalleyc

Description

@chevalleyc

The workaround is for now to force using java 8 in pom.xml as follows:

		<plugin>
    			<groupId>org.codehaus.mojo</groupId>
    			<artifactId>xmlbeans-maven-plugin</artifactId>
				<version>2.3.3</version>
    			<executions>
       				<execution>
          				<goals>
             				<goal>xmlbeans</goal>
          				</goals>
       				</execution>
    			</executions>
    			<inherited>true</inherited>
    			<configuration>
       				<schemaDirectory>src/main/xsd</schemaDirectory>
				<compiler>/usr/lib/jvm/java-8-openjdk-amd64/bin/javac</compiler>
    			</configuration>
  		</plugin>

the compiler parameter should specify an alternative path to a java 8 compiler.

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