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/questions/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


Reply via email to