Skip to content

Instantly share code, notes, and snippets.

@carandraug
Last active September 4, 2017 14:03
Show Gist options
  • Save carandraug/1e406a37cfaa6d01fb3535bed14b9015 to your computer and use it in GitHub Desktop.
Save carandraug/1e406a37cfaa6d01fb3535bed14b9015 to your computer and use it in GitHub Desktop.
test-javadoc-offlinelinks
package Foo;
public class Foo
{
public static void say (String what)
{
System.out.println (what);
return;
}
}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>foo</groupId>
<artifactId>foo</artifactId>
<version>foo</version>
<packaging>jar</packaging>
<name>A custom project</name>
<url>http://www.myorganization.org</url>
<build>
<sourceDirectory>./</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<offlineLinks>
<offlineLink>
<url>/usr/share/doc/default-jdk-doc/api/</url>
<location>/usr/share/doc/default-jdk-doc/api/</location>
</offlineLink>
</offlineLinks>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment