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 <parent> reference to the rootdir pom > * changed the packaging from bundle to jar > * added missing <version> and <groupId> 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