Bug#875322: libbatik-java: batik-1.9 causes FTBFS for freeplane due to changed artifacts/poms

Christopher Hoskin mans0954 at debian.org
Wed Sep 13 06:54:03 UTC 2017


Package: libbatik-java
Version: 1.9-1
Followup-For: Bug #875322

Dear Felix,

Two of the changes between batik 1.7 and 1.9 are that upstream now provides pom
files and that batik can be built either with ant or maven. I'm still doing the
build with ant as before.

On inspection it appears that there are some small differences between the jar
files built by ant and maven. In particular, the maven build creates 
batik-i18n.jar and batik-constants.jar whereas the ant build bundles the 
contents of these into batik-util.jar. 

The provided pom files assume that batik has been built with maven, and
therefore the pom file for batic-util includes:

    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>batik-constants</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>batik-i18n</artifactId>
      <version>${project.version}</version>
    </dependency>

Possible solutions are either to switch to using maven for the build, or to
modify the pom file to remove these dependencies from batic-util.pom. I
propose to do the latter by adding the following rules to debian/maven.rules:

org.apache.xmlgraphics s/batik-constants/batik-util/ jar * * *
org.apache.xmlgraphics s/batik-i18n/batik-util/ jar * * *

(This will have the side effect that batik-util will depend twice on itself 
- the other option would have been to have added these dependencies to the
ignore rules.)

Christopher



More information about the pkg-java-maintainers mailing list