Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.unit0.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: =?UTF-8?B?Q2FybsOrIERyYXVn?= Newsgroups: linux.debian.maint.java Subject: Re: javadocs links with maven-debian-helper Date: Fri, 08 Sep 2017 17:10:01 +0200 Message-ID: References: X-Original-To: debian-java@lists.debian.org X-Mailbox-Line: From debian-java-request@lists.debian.org Fri Sep 8 15:00:22 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.099 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-transfer-encoding; bh=Ha5C5THd8kdCj1nMpfncjYkN1aH6qVivSAlxRqYWF5A=; b=cvQh0PEqtyZ4peFjVWNpGat4C+egEBCG/eEVVXB9veYHGs84B7+cICpvaBwlP4QGh/ pgAnqTOhlQ5gkb5n4RY1Ph5ABaAzLvXfMO40UMCmRxnSgfcsYDohvAMrKkKn4LWoQRB0 efHrFt871xxilxALr65vNbJVAJPKPT8N4EDv7t/29ouk3cjf93uKe9kEzNYPCL6BmLHJ HKefcChWwOOr5J0raaeu/+N5759jJPtnmn86UhrGAGRsdbsKOWu78oyX081SLHcfu9fh MdQ4UXxFZ/kVUNYy7EiYRJZ2PsGv0vKEhbVFLoVdIeggPXQQlXjJjqLPILTiAH6nRFbu K54w== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-transfer-encoding; bh=Ha5C5THd8kdCj1nMpfncjYkN1aH6qVivSAlxRqYWF5A=; b=cOPIaKDVOukG+eb4eQyAVWZBq3pNaJCaizLakeVDH85vE9nb59SVAWF7itu0M/d6bs Q5EPm/h17NVFC90HIXYHaVI9Ga161JJpEnsCmPhEvPC5csOGikF0gpUnYYobHlNL3m2j PP7hPyw1cU2Ruh0zlAB3X/AfleKwZvzuXGqFgo+EgO9MZwmutE9lu0/xPHUHKo1hRvVw BDL8Q9RlwkJ+d7btVzGCZ+/pJz/8obpbd/wwoE8SvlDmwQOwudkZ7HHo+OVw8hgPZeNh EafJ2qklomEeWeOQ8kHlCtdw8q4jknfAt7SooxMLoHjxn1TeR0Y5jUymjw/2LwkZqGVd GtSQ== X-Gm-Message-State: AHPjjUg5CrnrjfGfzUrmbkMIZMSJayhavAlYKqw7OsgIst6Ubd5P3vyn ACuO2Wl4wI+atcHbBsVn52jmyzmCiJyH X-Google-SMTP-Source: ADKCNb5U8Gj8ynttkpEopFT3j4SyCSBhTx0ogHZDRQAaiSq//6j3FfzRMTNzSWAMoR5PyrUFEnXSofOOu2D7hq+3Q4M= X-Received: by 10.223.197.72 with SMTP id s8mr1809209wrf.120.1504882803807; Fri, 08 Sep 2017 08:00:03 -0700 (PDT) MIME-Version: 1.0 Sender: robomod@news.nic.it X-Google-Sender-Auth: gCipacDTAvql6FTXCEhPKbez_s8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/20351 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAPOrs_2Nc1R7n=tCt35jie5GJo=RTyzUP3fL8KDN7jmwWuF9fA@mail.gmail.com Approved: robomod@news.nic.it Lines: 54 Organization: linux.* mail to news gateway X-Original-Date: Fri, 8 Sep 2017 15:59:43 +0100 X-Original-Message-ID: X-Original-References: <6d7ec351-85b0-f616-aaec-6eb0bba27d7a@apache.org> X-Original-Sender: carandraug@gmail.com Xref: csiph.com linux.debian.maint.java:9987 On 31 August 2017 at 17:03, Carn=C3=AB Draug wro= te: > Hi > > I am packaging some java libraries with maven-debian-helper but having > problems setting the javadocs links properly. I have done this for > ant based projects but I can't figure out how to do it for maven > projects. > > I took a look on a few other *-java-doc packages that are maven only > projects (libjgoodies-looks-java-doc, libakuma-java, and > libmetadata-extractor-java-doc) hoping to find the answer. However, > they all are linking do docs.oracle.com too instead of the local > javadocs. libmetadata-extractor-java-doc on Stretch had the correct > javadoc links, back when upstream made use of ant and not maven. > > I have tried to set user property links [1] in the maven.properties > file as described in the javadoc plugin documentation but no avail. > > How do I set the path for the javadocs of other java libraries when > using maven-debian-helper? > > Thank you > Carn=C3=AB > > [1] https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.ht= ml#links Hi I solved this problem. The solution is to pass the -link command line options directly to the javadoc program via the additionalparam property on the debian.properties file. Like so [2]: additionalparam =3D -link /usr/share/doc/default-jdk-doc/api/ \ -link /usr/share/doc/libcommons-math3-java/api/ This whole problem exists because maven's javadoc plugin, which is being used to generate the javadocs, ignores the links property when in offline mode. This would work fine if using javadoc directly but the maven plugin adds extra incompatible logic to it. In addition, the offlineLinks option seems to only work when extdocURL really is an external url. I'm unsure if the problem with offlineLink is a maven javadoc plugin issue or the javadoc program. Because the maven plugin is ignore the links option, we have to pass the flags directly to javadoc with additionalparam. However, it seems that additionalparam is deprecated but I see no other alternative to pass options directly. Carn=C3=AB [2] https://github.com/carandraug/debian-libjlargearrays-java/commit/777a58= 05082216a86d50cd98bc517ddab1035433