jersey
  1. jersey
  2. JERSEY-782

should enable central version management in Jersey POMs

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0-m07
    • Component/s: None
    • Labels:
      None

      Description

      Jersey should have central version management in it's maven pom.xml files and documentation source files. Jersey sources should be able to change dependency versions in a handful of locations - in the root project POMs. All the other poms inheriting from one of the root poms, as well as all the documentation source files should be then referencing the dependency versions via variable properties rather than as absolute numbers. The described approach would reduce the amount of work needed for any subsequent version updates as well as help ensure consistency of any such change.

      For example, look for hard coded <version>1.9.36</version> used in:

      <dependency>
      <groupId>com.sun.grizzly</groupId>
      <artifactId>grizzly-servlet-webserver</artifactId>
      <version>1.9.36</version>
      </dependency>

      found in these files:

      jersey/contribs/jersey-oauth/oauth-tests/pom.xml
      jersey/archetypes/jersey-quickstart-grizzly/src/main/resources/archetype-resources/pom.xml
      jersey/experimental/hypermedia-action/hypermedia-action-client/pom.xml
      jersey/experimental/view-client/jersey-view-client-samples/hypermedia-action-sample/pom.xml
      jersey/jersey-bundle/pom.xml
      jersey/jersey-tests/pom.xml
      jersey/osgi/functional-tests/pom.xml
      jersey/osgi/runtime-delegate-tests/rd-tests/pom.xml
      jersey/osgi/test-grizzly-bundle/grizzly-jersey-bundle/pom.xml
      jersey/osgi/test-grizzly-bundle/grizzly-jersey-test/pom.xml
      jersey/samples/osgi-http-service/functional-test/pom.xml

      grizzly version "1.9.36" is also hard coded within these documentation files:
      jersey/jersey-documentation/src/docbook/dependencies.xml
      jersey/jersey-documentation/src/docbook/getting-started.xml

      There are many other such instances throughout Jersey code that should be changed.

        Activity

        Hide
        Jakub Podlesak added a comment -

        This should be fixed in Jersey 2.x codebase.

        Show
        Jakub Podlesak added a comment - This should be fixed in Jersey 2.x codebase.

          People

          • Assignee:
            Jakub Podlesak
            Reporter:
            jbenoit
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: