Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-464

Pom does not follow best practices

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • simple api
    • None

    Description

      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 its POM, coming from org.apache.odftoolkit:odfdom-java:0.8.11-incubating). Similarly, org.slf4j:slf4j-log4j12 is passed to my project as a dependency.

      I suspect these dependencies are actually not required for projects depending on simple-odf.

      It is possible and simple to ease the life of users of simple-odf by adding <optional> in the relevant pom files. This would respect Maven best practices. (See for example SO.)

      Workaround: add exclusion rules for these artifacts (see this example POM).

      (I tried to discuss it here but received no answer.)

      Attachments

        Activity

          People

            svanteschubert Svante Schubert
            oliviercailloux Olivier Cailloux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: