Javadoc related to split package

When using the javadoc tool (which I do through the Maven Javadoc Plugin, and not directly with javadoc), there is an option -linkto link to external sources. The problem is that my project uses JSR-305 annotations, and I set up a javadoc tool to reference Java SE 8 APIs.

Both Java SE 8 and JSR-305 APIs are used javax.annotation, and therefore, since javadoc cannot really determine whether there are any javax.annotation.NullableJava SE 8 or JSR-305, it can generate a dead link to Java SE 8 javadocs as opposed to a working link on javadocs JSR-305. Is there a way to configure javadoc to fix this, so that the links to javax.annotation.Nullableare related to the JSR-305 javadocs, and other things, such as javax.annotation.Resource, are laid out in the Java SE 8 API?

+4
source share

Source: https://habr.com/ru/post/1589382/


All Articles