Bug#880746: libmetadata-extractor-java: Manifest references xmpcore-debian.jar, but libxmpcore-java does not provide this file.

Markus Koschany apo at debian.org
Sat Nov 4 22:00:19 UTC 2017


Control: tags -1 pending confirmed

Hi,
thanks for reporting. I will use javahelper to correct the Class-Path
attribute as you have suggested. I didn't use the verbose mode of
jh_classpath though. By the way it is also possible to use a
override_jh_classpath.

The root cause of this problem is in pom.xml. The maven-jar-plugin is
configured to set the classpath automatically with

<addClasspath>true</addClasspath>

By default it is assumed that all jars are in the same directory. This
is another good example why relative classpaths suck in the context of
Debian Java packaging. Instead of using javahelper we could also modify
the pom.xml and configure the maven-jar-plugin to use a custom Class-Path

https://maven.apache.org/shared/maven-archiver/examples/classpath.html#Custom

However I agree that it is simpler to use javahelper and avoid the patch
which is not needed upstream. Have a nice weekend

Cheers,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20171104/c3d60c29/attachment.sig>


More information about the pkg-java-maintainers mailing list