Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #12534

help with plugin versions and maven-debian-helper

From Joe Nahmias <joe@nahmias.net>
Newsgroups linux.debian.maint.java
Subject help with plugin versions and maven-debian-helper
Date 2023-02-08 05:50 +0100
Message-ID <FWKz7-4jkQ-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

I'm new to maven-debian-helper and am trying to package
jackson-modules-java8 [0], as part of a larger project to package
mssql-jdbc.

[0]: https://github.com/FasterXML/jackson-modules-java8

I've got my dev env with m-d-h, along with (I believe) all the relevant
java packages for the build-deps including libjackson2-core-java. I try
running mh_make as follows:

$ mh_make --package=jackson-modules-java8 \
	--bin-package=libjackson2-modules-java8-java \
	--javadoc=false --run-tests=false

After mostly accepting the defaults and ignoring some irrelevant plugins
and test deps, I end up with the following error:

[FATAL] Non-resolvable parent POM for com.fasterxml.jackson.module:jackson-modules-java8:2.14.2: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact com.fasterxml.jackson:jackson-base:pom:2.14.2 has not been downloaded from it before. and 'parent.relativePath' points at wrong local POM @ line 8, column 10

I then manually hack the version of the jackson-base parent in the rootdir
pom.xml to use the debian version as follows:

diff --git a/pom.xml b/pom.xml
index 8c55a38..0e99618 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   <parent>
     <groupId>com.fasterxml.jackson</groupId>
     <artifactId>jackson-base</artifactId>
-    <version>2.14.2</version>
+    <version>debian</version>
   </parent>
   <groupId>com.fasterxml.jackson.module</groupId>
   <artifactId>jackson-modules-java8</artifactId>


Re-running mh_make (after cleaning up the failed run) then gives me:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.fasterxml:oss-parent:debian, /usr/share/maven-repo/com/fasterxml/oss-parent/debian/oss-parent-debian.pom, line 173, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ com.fasterxml:oss-parent:debian, /usr/share/maven-repo/com/fasterxml/oss-parent/debian/oss-parent-debian.pom, line 217, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ com.fasterxml:oss-parent:debian, /usr/share/maven-repo/com/fasterxml/oss-parent/debian/oss-parent-debian.pom, line 226, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ com.fasterxml:oss-parent:debian, /usr/share/maven-repo/com/fasterxml/oss-parent/debian/oss-parent-debian.pom, line 199, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ com.fasterxml:oss-parent:debian, /usr/share/maven-repo/com/fasterxml/oss-parent/debian/oss-parent-debian.pom, line 221, column 12
[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?

Thanks,
--Joe

Back to linux.debian.maint.java | Previous | NextNext in thread | Find similar


Thread

help with plugin versions and maven-debian-helper Joe Nahmias <joe@nahmias.net> - 2023-02-08 05:50 +0100
  Re: help with plugin versions and maven-debian-helper Emmanuel Bourg <ebourg@apache.org> - 2023-02-08 09:00 +0100
    Re: help with plugin versions and maven-debian-helper Joe Nahmias <joe@nahmias.net> - 2023-02-09 00:10 +0100
      Re: help with plugin versions and maven-debian-helper Joe Nahmias <joe@nahmias.net> - 2023-02-09 00:30 +0100
        Re: help with plugin versions and maven-debian-helper Emmanuel Bourg <ebourg@apache.org> - 2023-02-09 08:40 +0100
          Re: help with plugin versions and maven-debian-helper Joe Nahmias <joe@nahmias.net> - 2023-02-09 19:40 +0100
            Re: help with plugin versions and maven-debian-helper Emmanuel Bourg <ebourg@apache.org> - 2023-02-09 23:10 +0100
              Re: help with plugin versions and maven-debian-helper Vladimir Petko <vladimir.petko@canonical.com> - 2023-02-09 23:20 +0100
                Re: help with plugin versions and maven-debian-helper Thorsten Glaser <t.glaser@tarent.de> - 2023-02-09 23:30 +0100
              Re: help with plugin versions and maven-debian-helper Thorsten Glaser <t.glaser@tarent.de> - 2023-02-09 23:20 +0100
              Re: help with plugin versions and maven-debian-helper Joe Nahmias <joe@nahmias.net> - 2023-02-10 02:00 +0100
                Re: help with plugin versions and maven-debian-helper Emmanuel Bourg <ebourg@apache.org> - 2023-02-10 13:00 +0100
                Re: help with plugin versions and maven-debian-helper Thorsten Glaser <t.glaser@tarent.de> - 2023-02-10 15:10 +0100
                Re: help with plugin versions and maven-debian-helper Emmanuel Bourg <ebourg@apache.org> - 2023-02-10 16:40 +0100

csiph-web