[ 
https://issues.apache.org/jira/browse/MJAVADOC-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165213#comment-17165213
 ] 

Anthony Vanelverdinghe commented on MJAVADOC-623:
-------------------------------------------------

Ok, I've opened an [alternative 
PR|https://github.com/apache/maven-javadoc-plugin/pull/51] that addresses your 
concerns by falling back to downloading the element-list from the resolved 
`javaApiLink`. (Note that it also adds the element-list file for JDK 15 
already, since the file won't change anymore before the final release)

So this gives all the advantages, while also:
* guaranteeing that the resolved link matches the actual Java version, i.e. no 
unlinked classes will occur
* returning null and logging an appropriate error if the correct `element-list` 
cannot be resolved for some reason

> [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)

Reply via email to