Java 8 + Maven Javadoc plugin: Error fetching URL -
i attempting generate javadoc links javadoc dependencies. have tried various means generate javadoc not produce qualified class names references classes dependencies. wanted links java doc simplified class names. however, java api classnames, no links , have qualified class names. working java 8. have following configuration:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-javadoc-plugin</artifactid> <version>2.10.2</version> <configuration> <reportoutputdirectory>${project.basedir}/target</reportoutputdirectory> <destdir>javadoc</destdir> <windowtitle>epiphany</windowtitle> <doctitle>epiphany</doctitle> <show>private</show> <detectlinks>false</detectlinks> <detectofflinelinks>true</detectofflinelinks> <linksource>true</linksource> <detectjavaapilink>false</detectjavaapilink> <additionalparam>-xdoclint:none</additionalparam> <links> <link>http://docs.oracle.com/javase/8/docs/api</link> </links> </configuration> <executions> <execution> <goals> <goal>javadoc</goal> <goal>test-javadoc</goal> </goals> </execution> </executions> </plugin>
i have source set java 8 in maven compiler configuration. have tried using detectjavaapilink
set true
, leaving out link java 8 javadoc, javadoc not generate links java api classes , references them in javadoc qualified class names.
i have tried setting detectjavaapilink
false
, using above configuration specified url(without , without trailing slash) , same result, along error:
[warning] javadoc: warning - error fetching url: http://docs.oracle.com/javase/8/docs/api
i have tried detecting links based on declared dependencies, , have tried setting false , providing links javadoc , still no links , class names classes in dependencies qualified. heck doing wrong? package-list files available @ urls specified, don't why javadoc cannot access them or javadoc located there.
update:
changed version of maven javadoc plugin 2.10.3. now, if set detectjavaapilink
true
, remove link java 8 javadoc, javadoc generated links java api classes , used simplified names.
however, still having problems 3rd party dependencies , linking javadoc. if set detectlinks
true
, fails find javadoc of them. if set false
, manually configure location, still error message saying cannot fetch url:
[warning] javadoc: warning - error fetching url: https://selenium.googlecode.com/git/docs/api/java
my updated pom configuration maven javadoc plugin below:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-javadoc-plugin</artifactid> <version>2.10.3</version> <configuration> <reportoutputdirectory>${project.basedir}/target</reportoutputdirectory> <destdir>javadoc</destdir> <windowtitle>epiphany</windowtitle> <doctitle>epiphany</doctitle> <show>private</show> <detectlinks>false</detectlinks> <detectofflinelinks>true</detectofflinelinks> <linksource>true</linksource> <additionalparam>-xdoclint:none</additionalparam> <detectjavaapilink>true</detectjavaapilink> <links> <link>https://selenium.googlecode.com/git/docs/api/java</link> </links> </configuration> <executions> <execution> <goals> <goal>javadoc</goal> <goal>test-javadoc</goal> </goals> </execution> </executions> </plugin>
update 2:
defect report filed mjavadoc:
Comments
Post a Comment