Brett Ryan
Brett Ryan

Reputation: 28275

Is there a fix for the jaxb2-maven-plugin:schemagen to work with JDK8?

In JDK 7 jaxb2-maven-plugin produces a warning about apt being removed, it now has in JDK8 and I can not sure how to get the plugin to work with JDK8.

warning: The apt tool and its associated API are planned to be removed in the next major JDK release. These features have been superseded by javac and the standardized annotation processing API, javax.annotation.processing and javax.lang.model. Users are recommended to migrate to the annotation processing features of javac; see the javac man page for more information.

I have created a ticket on the project page: MJAXB-83.

Upvotes: 4

Views: 2326

Answers (1)

Waldheinz
Waldheinz

Reputation: 10487

The JAXB2 schemagen works with JDK8 as of version 1.6, it's enough to update the plugin reference in the project's pom.xml.

Upvotes: 5

Related Questions