Dear Felix,

Another option would be for me to switch to using maven to build
batik. I've had a go at this here:

https://anonscm.debian.org/cgit/pkg-java/batik.git/?h=maven-build

In this case, batik-i18n and batik-constants are created as jars in
their own right under /usr/share/java rather than being bundled into
other jars. Upstream supports building with maven, although I presume
they are still using ant for their own binaries as they don't have
batik-i18n and batik-constants jars?

I haven't uploaded the maven build as I don't know if this approach
might have a negative impact on other reverse dependencies expecting
the ant layout build?

Christopher


On 9 September 2017 at 15:22, Christopher Hoskin <mans0...@debian.org> wrote:
> Dear Felix,
>
> One of the changes between batik 1.7 and 1.9 is that upstream now
> provides pom files, although I'm still doing the build with ant.
>
> batik-i18n gets included in the batic-util.jar, but 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>
>
> So my first thought is that this is a problem with the upstream pom files.
>
> If I comment out these dependencies and add jython to the build
> dependencies for freeplane, then the freeplane package builds okay.
>
> If it makes sense, I can make this change in the batik package and
> upload a new version.
>
> Christopher
>
>
>
>
> On 9 September 2017 at 13:58, Felix Natter <fnat...@gmx.net> wrote:
>> hello Debian-java,
>> hello Christopher,
>>
>> freeplane depends on several batik artifacts:
>>
>>    compile 'org.apache.xmlgraphics:batik-anim:1.7',
>>             'org.apache.xmlgraphics:batik-awt-util:1.7',
>>             'org.apache.xmlgraphics:batik-bridge:1.7',
>>             'org.apache.xmlgraphics:batik-codec:1.7',
>>             'org.apache.xmlgraphics:batik-css:1.7',
>>             'org.apache.xmlgraphics:batik-dom:1.7',
>>             'org.apache.xmlgraphics:batik-extension:1.7',
>>             'org.apache.xmlgraphics:batik-ext:1.7',
>>             'org.apache.xmlgraphics:batik-gui-util:1.7',
>>             'org.apache.xmlgraphics:batik-gvt:1.7',
>>             'org.apache.xmlgraphics:batik-parser:1.7',
>>             'org.apache.xmlgraphics:batik-script:1.7',
>>             'org.apache.xmlgraphics:batik-svg-dom:1.7',
>>             'org.apache.xmlgraphics:batik-svggen:1.7',
>>             'org.apache.xmlgraphics:batik-swing:1.7',
>>             'org.apache.xmlgraphics:batik-transcoder:1.7',
>>             'org.apache.xmlgraphics:batik-util:1.7',
>>             'org.apache.xmlgraphics:batik-xml:1.7',
>>
>> This worked fine for years, but now (even with the older libbatik-1.8-4)
>> I get compilation errors:
>>
>> FAILURE: Build failed with an exception.
>>
>> * What went wrong:
>> Could not resolve all dependencies for configuration 
>> ':freeplane_plugin_svg:compileClasspath'.
>>> Could not resolve org.python:jython:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-script:debian
>>    > No cached version of org.python:jython:debian available for offline 
>> mode.
>>    > No cached version of org.python:jython:debian available for offline 
>> mode.
>>> Could not resolve org.apache.xmlgraphics:batik-constants:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-util:debian
>>    > No cached version of org.apache.xmlgraphics:batik-constants:debian 
>> available for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-constants:debian 
>> available for offline mode.
>>> Could not resolve org.apache.xmlgraphics:batik-i18n:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-util:debian
>>    > No cached version of org.apache.xmlgraphics:batik-i18n:debian available 
>> for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-i18n:debian available 
>> for offline mode.
>>
>> I don't think adding jython to (build) depends will get me far, because
>> batik-i18n and batik-constants are missing.
>>
>> So I tried with removed batik-util and batik-script dependencies:
>>
>> FAILURE: Build failed with an exception.
>>
>> * What went wrong:
>> Could not resolve all dependencies for configuration 
>> ':freeplane_plugin_svg:compileClasspath'.
>>> Could not resolve org.apache.xmlgraphics:batik-constants:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-codec:debian > 
>> org.apache.xmlgraphics:batik-util:debian
>>    > No cached version of org.apache.xmlgraphics:batik-constants:debian 
>> available for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-constants:debian 
>> available for offline mode.
>>> Could not resolve org.apache.xmlgraphics:batik-i18n:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-codec:debian > 
>> org.apache.xmlgraphics:batik-util:debian
>>    > No cached version of org.apache.xmlgraphics:batik-i18n:debian available 
>> for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-i18n:debian available 
>> for offline mode.
>>> Could not resolve org.python:jython:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-swing:debian > 
>> org.apache.xmlgraphics:batik-script:debian
>>    > No cached version of org.python:jython:debian available for offline 
>> mode.
>>    > No cached version of org.python:jython:debian available for offline 
>> mode.
>>
>> with only batik-all dependency:
>>
>> :freeplane_plugin_svg:compileJava (Thread[main,5,main]) completed. Took 
>> 0.646 secs.
>>
>> FAILURE: Build failed with an exception.
>>
>> * What went wrong:
>> Could not resolve all dependencies for configuration 
>> ':freeplane_plugin_svg:compileClasspath'.
>>> Could not resolve org.apache.xmlgraphics:batik-constants:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > org.apache.xmlgraphics:batik-all:debian
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-all:debian > 
>> org.apache.xmlgraphics:batik-util:debian
>>    > No cached version of org.apache.xmlgraphics:batik-constants:debian 
>> available for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-constants:debian 
>> available for offline mode.
>>> Could not resolve org.apache.xmlgraphics:batik-i18n:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > org.apache.xmlgraphics:batik-all:debian
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-all:debian > 
>> org.apache.xmlgraphics:batik-util:debian
>>    > No cached version of org.apache.xmlgraphics:batik-i18n:debian available 
>> for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-i18n:debian available 
>> for offline mode.
>>> Could not resolve org.apache.xmlgraphics:batik-rasterizer-ext:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > org.apache.xmlgraphics:batik-all:debian
>>    > No cached version of org.apache.xmlgraphics:batik-rasterizer-ext:debian 
>> available for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-rasterizer-ext:debian 
>> available for offline mode.
>>> Could not resolve org.apache.xmlgraphics:batik-squiggle-ext:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > org.apache.xmlgraphics:batik-all:debian
>>    > No cached version of org.apache.xmlgraphics:batik-squiggle-ext:debian 
>> available for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-squiggle-ext:debian 
>> available for offline mode.
>>> Could not resolve org.apache.xmlgraphics:batik-svgbrowser:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > org.apache.xmlgraphics:batik-all:debian
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-all:debian > 
>> org.apache.xmlgraphics:batik-squiggle:debian
>>    > No cached version of org.apache.xmlgraphics:batik-svgbrowser:debian 
>> available for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-svgbrowser:debian 
>> available for offline mode.
>>> Could not resolve org.apache.xmlgraphics:batik-svgrasterizer:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > org.apache.xmlgraphics:batik-all:debian
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-all:debian > 
>> org.apache.xmlgraphics:batik-rasterizer:debian
>>    > No cached version of org.apache.xmlgraphics:batik-svgrasterizer:debian 
>> available for offline mode.
>>    > No cached version of org.apache.xmlgraphics:batik-svgrasterizer:debian 
>> available for offline mode.
>>> Could not resolve org.python:jython:debian.
>>   Required by:
>>       project :freeplane_plugin_svg > 
>> org.apache.xmlgraphics:batik-all:debian > 
>> org.apache.xmlgraphics:batik-script:debian
>>    > No cached version of org.python:jython:debian available for offline 
>> mode.
>>    > No cached version of org.python:jython:debian available for offline 
>> mode.
>>
>> I tried oonly batik-swing:
>>
>>  problem occurred evaluating project ':freeplane_plugin_svg'.
>>> Could not resolve all dependencies for configuration 
>>> ':freeplane_plugin_svg:runtime'.
>>    > Could not resolve org.apache.xmlgraphics:swing:1.7.
>>      Required by:
>>          project :freeplane_plugin_svg
>>       > No cached version of org.apache.xmlgraphics:swing:1.7 available for 
>> offline mode.
>>       > No cached version of org.apache.xmlgraphics:swing:1.7 available for 
>> offline mode.
>>
>> I have looked at osmium and figtree (r-deps) to see how they depend on
>> batik jars, but that didn't help. Is there an r-dep that depends on
>> batik for swing/SVG rendering, preferrably with a gradle build system,
>> that I could copy/learn from?
>>
>> Thanks and Best Regards,
>> --
>> Felix Natter
>> debian/rules!

Reply via email to