You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:jar (attach-javadocs) on project spring-boot-devtools: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/HateoasObjenesisCacheDisabler.java:21: error: package javax.annotation is not visible
[ERROR] import javax.annotation.PostConstruct;
[ERROR] ^
[ERROR] (package javax.annotation is declared in module java.xml.ws.annotation, which is not in the module graph)
[ERROR] /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/OptionalLiveReloadServer.java:19: error: package javax.annotation is not visible
[ERROR] import javax.annotation.PostConstruct;
[ERROR] ^
[ERROR] (package javax.annotation is declared in module java.xml.ws.annotation, which is not in the module graph)
[ERROR] /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/client/RemoteClientConfiguration.java:27: error: package javax.annotation is not visible
[ERROR] import javax.annotation.PostConstruct;
[ERROR] ^
[ERROR] (package javax.annotation is declared in module java.xml.ws.annotation, which is not in the module graph)
[ERROR]
(You need to upgrade to maven-javadoc-plugin 3.0.0+ first)
The text was updated successfully, but these errors were encountered:
DevTools has a compile and runtime dependency on javax.annotation.PostConstruct. That class is provided by the JDK on Java 8, but not on Java 9. Anyone using spring-boot-starter now also has javax.annotation:javax.annotation-api on the classpath so DevTools expecting it to be provided doesn't feel unreasonable to me. Thoughts?
Executing
From the
spring-boot-full-build
directory yield:(You need to upgrade to
maven-javadoc-plugin
3.0.0+ first)The text was updated successfully, but these errors were encountered: