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

help with plugin versions and maven-debian-helper



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


Reply to: