Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1898

Force commons-codec dependency to be Jena parent POM choice

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.15.0
    • Jena 3.16.0
    • None
    • None

    Description

      I have a project where the dependency resolution causes the commons-codec from Apache httpcomponents to be chosen (v1.11), not the version needed by Jena (v1.14).

      Maven dependency rules: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

      The project depends on several Jena artifacts and the encounter order of dependencies can matter.

      This happens with maven 3.6.3, which is current latest.

      Clearing up the projects dependencies will also fix the problem but leaves it to the user to deal with it. (The project is an old and messy scratch working area and the POM isn't neat and tidy. It was bringing in Jena test code.)

      To be safe, this ticket is to force the dependency resolution by excluding common-codec from the org.apache.httpcomponents (httpclient and httpclient).

      Then at least the order of any Jena artifacts does not impact the outcome.

       

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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