[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Offline javadoc linking with maven-debian-helper/maven



On Fri, May 6, 2011 at 10:04 AM, James Page <james.page@canonical.com> wrote:
> I've tried following the advice in the maven-javadoc-plugin FAQ (see
> [1]) by populating the maven.properties file with:
>
>        maven.javadoc.offlineLinks=/usr/share/doc/openjdk-6-doc/api/

I tried something like that sometime ago with no luck. I don't know if there is
a bug with maven javadoc plugin or with maven debian helper.

The only way that I could make that work was patching the POM, something
like this:

--- checkstyle-5.3.orig/pom.xml
+++ checkstyle-5.3/pom.xml
@@ -375,6 +375,12 @@
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
           <source>1.5</source>
+          <offlineLinks>
+            <offlineLink>
+              <url>file:///usr/share/doc/default-jdk-doc/api/</url>
+              <location>file:///usr/share/doc/default-jdk-doc/api/</location>
+            </offlineLink>
+          </offlineLinks>
         </configuration>
         <reportSets>
           <reportSet>


This probably is just a hack but you can take a look at checkstyle package:
http://svn.debian.org/wsvn/pkg-java/trunk/checkstyle/debian/patches/01_link_to_system_javadocs.diff

If you succeed on this without having to patch pom files, please let me know.

Cheers,

-- 
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x7D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche


Reply to: