Path: csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Joe Nahmias Newsgroups: linux.debian.maint.java Subject: Re: help with plugin versions and maven-debian-helper Date: Thu, 09 Feb 2023 00:30:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Wed Feb 8 23:24:38 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no Mail-Followup-To: Joe Nahmias , Emmanuel Bourg , debian-java@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/23190 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/Y+QvHsgCLpxiB732@nahmias.net Approved: robomod@news.nic.it Lines: 73 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 8 Feb 2023 18:24:14 -0500 X-Original-Message-ID: X-Original-References: <5727dc243076178631326e380aa5ac10@apache.org> Xref: csiph.com linux.debian.maint.java:12539 On Wed, Feb 08, 2023 at 06:03:50PM -0500, Joe Nahmias wrote: > On Wed, Feb 08, 2023 at 08:51:48AM +0100, Emmanuel Bourg wrote: > > Le 2023-02-08 05:47, Joe Nahmias a écrit : > > > > > [ERROR] Unresolveable build extension: Error resolving version for > > > plugin 'org.apache.felix:maven-bundle-plugin' from the repositories > > > [local (/usr/share/maven-repo), central > > > (https://repo.maven.apache.org/maven2)]: Plugin not found in any > > > plugin repository @ > > > > > > Is this a bug in libjackson2-core-java (which provides oss-parent) for > > > stripping the version tags in the plugin section (they are present > > > upstream and in the source) or am I misusing mh_make and/or > > > maven-debian-helper in some non-obvious (to me) way? > > > > Hi Joe, > > Hi Emmanuel, > > > You can try changing the packaging type from bundle to jar, or ignore > > the parent pom, just to get the initial run of mh_make to complete > > without error. > > Alright, I've tried removing the parent sections from the root pom.xml. > Then, in the pom.xml within the module subdirs, I: > > * removed the reference to the rootdir pom > * changed the packaging from bundle to jar > * added missing and tags > > When I then run mh_make, I receive: > > [ERROR] Error resolving version for plugin 'com.google.code.maven-replacer-plugin:replacer' from the repositories [local (/usr/share/maven-repo), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1] > > From the comments in the pom.xml, it seems this is used to generate the > PackageVersion.java. Feels a bit wrong to rip this out too, but maybe it's > just necessary to get mh_make to complete and then I can put all these > things back for build. Is that the path I should be taking? Is this > normal? It turns out I missed adding the version of maven-replacer-plugin:replacer in one of the poms. After fixing that and rerunning mh_make, I get a bit farther and then run into this: [INFO] Building Jackson modules: Java 8 2.14.2 [1/4] [INFO] --------------------------------[ pom ]--------------------------------- [WARNING] The POM for com.fasterxml.jackson.core:jackson-annotations:jar:debian is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Jackson modules: Java 8 2.14.2: [INFO] [INFO] Jackson-module-parameter-names ..................... SKIPPED [INFO] Jackson datatype: jdk8 ............................. SKIPPED [INFO] Jackson datatype: JSR310 ........................... SKIPPED [INFO] Jackson modules: Java 8 ............................ FAILURE [ 0.027 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.115 s [INFO] Finished at: 2023-02-08T23:09:31Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project jackson-datatype-jsr310: Could not resolve dependencies for project com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.14.2: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact com.fasterxml.jackson.core:jackson-annotations:jar:debian has not been downloaded from it before. -> [Help 1] I see jackson-annotations comes from package libjackson2-annotations-java, and indeed version 2.14.0-1 does not contain a debian symlink for /u/s/maven-repo [0]. Any more ideas? [0]: https://packages.debian.org/sid/all/libjackson2-annotations-java/filelist > It would be nice if there were a newer tutorial on using m-d-h using recent > versions. > > > Emmanuel Bourg > --Joe