You are viewing a plain text version of this content. The canonical link for it is here.
Posted to odf-users@incubator.apache.org by Svante Schubert <sv...@gmail.com> on 2017/08/17 12:09:19 UTC

Re: Possible optional dependencies

Hello Olivier,

Sorry, I have overseen this email (vacation problem?). Thanks for your issue
<https://issues.apache.org/jira/browse/ODFTOOLKIT-464>, I am looking
forward to some patch, which we can test.

Thanks in advance,
Svante
ᐧ

2017-07-29 21:33 GMT+02:00 Olivier Cailloux <ol...@gmail.com>:

> When depending on Apache ODFToolkit simple-odf in my application
> (org.apache.odftoolkit:simple-odf:0.8.2-incubating), I observe that
> com.sun:tools is transitively imposed on my project as a dependency (coming
> from taglets, see https://repo1.maven.org/maven2
> /org/apache/odftoolkit/taglets/0.8.11-incubating/taglets-0.
> 8.11-incubating.pom). Similarly, org.slf4j:slf4j-log4j12 is passed on my
> project as a dependency.
>
> I suspect these dependencies are actually not required for projects
> depending on simple-odf. Is this correct? (Simple tests suggest so, but of
> course it is impossible to be sure without an extensive look at the source.)
>
> While I can add exclusion rules to these artifacts (see
> https://github.com/oliviercailloux/Test-ODFToolkit-ODS/blob/master/pom.xml),
> I believe it is possible to further ease the life of users of simple-odf.
> (See for example https://stackoverflow.com/ques
> tions/32231814/how-can-i-remove-logback-from-a-librarys-
> dependency-while-keeping-slf4j .)
>
> May I suggest to add <optional> in the relevant pom files?
>
> Pardon me if I overlooked something and things reveal not to be so simple.
>
> Olivier
>
>
>