Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-772

Exclude unused transitive dependencies

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      Hello. I noticed that poi-ooxml and postgresql, which are transitive dependencies induced via dbunit, are actually not used.

      Looking at the Maven dependency tree of the project, we can see that these dependencies may create conflicts:

      .  .  .
       |  +- org.apache.poi:poi-ooxml:jar:3.17:test
       |  |  +- org.apache.poi:poi:jar:3.17:test
       |  |  |  +- (commons-codec:commons-codec:jar:1.10:test - omitted for conflict with 1.13)
       |  |  |  \- org.apache.commons:commons-collections4:jar:4.1:test
       |  |  +- org.apache.poi:poi-ooxml-schemas:jar:3.17:test
       |  |  |  \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:test
       |  |  |     \- stax:stax-api:jar:1.0.1:test
       |  |  \- com.github.virtuald:curvesapi:jar:1.04:test
       |  \- postgresql:postgresql:jar:8.4-701.jdbc3:test
      .  .  .

      Hence, It is a good practice to exclude these dependencies from the pom to avoid conflicts, to make the library smaller and the dependency tree clearer.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cesarsotovalero César Soto Valero

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                  Issue deployment