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

Re: libbatik-java: Changed artifacts?



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 <fnatter@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 to: