[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?
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,
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.
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'sjust necessary to get mh_make to complete and then I can put all these
Emmanuel Bourg--Joe
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 would be nice if there were a newer tutorial on using m-d-h using recent versions.
Emmanuel Bourg--Joe
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?
Le 2023-02-09 00:24, Joe Nahmias a crit:
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?
You are probably missing a substitution rule for jackson-annotations:
com.fasterxml.jackson.core jackson-annotations * s/.*/2.x/ * *
Emmanuel Bourg
Thanks for all your help. I think I managed to figure this out finally.
I've put my repo on salsa here: https://salsa.debian.org/java-team/jackson-modules-java8
Anyone care to do a(n in-depth) review before I upload?
The content of the binary package is perfect. Nice trick in debian/control
to reuse the same description, I didn't know that was possible.
Sorry for jumping into the discussion, but it looks like maven-helper
deploys
jar files slightly incorrectly.
Le 2023-02-09 19:39, Joe Nahmias a écrit :
Thanks for all your help. I think I managed to figure this out finally. I've put my repo on salsa here: https://salsa.debian.org/java-team/jackson-modules-java8
Anyone care to do a(n in-depth) review before I upload?
Great! Here is my review:
- Don't build the -java-doc package, that's useless
- The Maven wrapper should be removed (mwn* and .mvn/wrapper/*)
- I'd use the default gbp branch layout (master/upstream/pristine-tar)
instead of the DEP 14 layout (debian/latest). Most Java packages
follow the gbp layout and it's important all packages remain
consistent.
- Drop the +ds suffix
- debian/changelog doesn't close an ITP bug
- Why declaring a Provides field on virtual packages? That's unusual
The content of the binary package is perfect. Nice trick in
debian/control
to reuse the same description, I didn't know that was possible.
Emmanuel Bourg
Le 2023-02-09 19:39, Joe Nahmias a crit:
Thanks for all your help. I think I managed to figure this out finally. I've put my repo on salsa here: https://salsa.debian.org/java-team/jackson-modules-java8
Anyone care to do a(n in-depth) review before I upload?
Great! Here is my review:
- Don't build the -java-doc package, that's useless
- The Maven wrapper should be removed (mwn* and .mvn/wrapper/*)
- I'd use the default gbp branch layout (master/upstream/pristine-tar)
instead of the DEP 14 layout (debian/latest). Most Java packages
follow the gbp layout and it's important all packages remain consistent.
- Drop the +ds suffix
- debian/changelog doesn't close an ITP bug
- Why declaring a Provides field on virtual packages? That's unusual
The content of the binary package is perfect. Nice trick in debian/control
to reuse the same description, I didn't know that was possible.
Emmanuel Bourg
- Don't build the -java-doc package, that's useless
Um, why do you say it's useless?
- Drop the +ds suffix
Why? Isn't that traditionally used to show a repack?
- Drop the +ds suffix
Why? Isn't that traditionally used to show a repack?
I have a preference for clean version numbers. The suffix is useful
if a version was already packaged and needs to be modified afterward
because unwanted files were included by mistake.
DevRef §6.7.8.2 indicates that using such a suffix for *all* repacked origtgz is better.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 23:30:15 |
Calls: | 6,707 |
Calls today: | 1 |
Files: | 12,239 |
Messages: | 5,352,101 |