[
https://issues.apache.org/jira/browse/MJAVADOC-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17164491#comment-17164491
]
Erik Eide commented on MJAVADOC-623:
------------------------------------
I had this issue and was unable to find any answers. After looking at source, I
found that setting "maven.compiler.release" property to "8" solves the issue
(https://github.com/apache/maven-javadoc-plugin/blob/09b7e03fe680a0441fc049557a19623bd4572632/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java#L6312-L6316)
My understanding is that it fails to detect javadoc links for the correct
version of Java in the absense of this property on Java 9+.
{code:xml}
<properties>
...
<maven.compiler.release>8</maven.compiler.release>
</properties>
{code}
Hopefully this saves other people time :)
> [ERROR] Error fetching link:
> %{project.basedir}/target/javadoc-bundle-options. Ignored it.
> ------------------------------------------------------------------------------------------
>
> Key: MJAVADOC-623
> URL: https://issues.apache.org/jira/browse/MJAVADOC-623
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 3.1.1
> Reporter: Yaytay
> Priority: Minor
>
> Not sure whether this is a bug or a something missing my side.
> Using the javadoc plugin with maven 3.6.2 and JDK 13 and a minimal
> configuration:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <version>3.1.1</version>
> <executions>
> <execution>
> <id>attach-javadocs</id>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
> I get this error:
> [ERROR] Error fetching link:
> ${project.basedir}/target/javadoc-bundle-options. Ignored it.
> (with the ${project.basedir} being the absolute path for the project).
> If this error can be ignored it shouldn't be logged at Error level (debug or
> info would be preferable).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)