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

maven-debian-helper: dependency org.kohsuke github-api not found



Dear readers,

as my first packaging project I try to package the Zettelkasten Zkn3
app https://github.com/Zettelkasten-Team/Zettelkasten/tree/main
and can build it successfully with maven on Debian bookworm. However,
trying to package it in a deb with mh_helper, I get this message:

In pom.xml: This dependency cannot be found in the Debian Maven
repository. Ignore this dependency?  org.kohsuke:github-api:jar:1.117
[y/N] > 
> dpkg --search /usr/share/maven-repo/org/kohsuke/github-api/*/* 
dpkg failed to execute successfully
> apt-file search /usr/share/maven-repo/org/kohsuke/github-api 
apt-file failed to execute successfully
> dpkg --search /usr/share/java/github-api.jar 
dpkg failed to execute successfully
> apt-file search /usr/share/java/github-api.jar 
Found perl
Found perl
Found perl
apt-file failed to execute successfully
[error] Package perl does not contain Maven dependency
org.kohsuke:github-api:jar:1.117 but there seem to be a match
If the package contains already Maven artifacts but the names don't
match, try to enter a substitution rule
of the form s/groupId/newGroupId/ s/artifactId/newArtifactId/ jar
s/version/newVersion/ here:

Using the suggestions here https://wiki.debian.org/Java/Packaging/FAQ
I do not find a corresponding debian package, but on maven it exists:
https://mvnrepository.com/artifact/org.kohsuke/github-api

How can I satisfy the dependency in a Debian way? Thanks for helpful
pointers

Tobias 


Reply to: