Uploaded image for project: 'infrautils'
  1. infrautils
  2. INFRAUTILS-41

Bump dropwizard.metrics from 3.2.5 to 4.0.2

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • Fluorine
    • None
    • metrics
    • None

      Bump io.dropwizard.metrics : metrics-core & Co. from old 3.2.5 to latest current non-RC release 4.0.2.

      https://git.opendaylight.org/gerrit/#/c/72223/ is hitting an interesting OSGi problem:

      Running org.opendaylight.odlparent.featuretest.SingleFeatureTest
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 14.316 sec <<< FAILURE! - in org.opendaylight.odlparent.featuretest.SingleFeatureTest
      installFeatureCatchAndLog(org.opendaylight.odlparent.featuretest.SingleFeatureTest)[repoUrl: file:/home/vorburger/dev/ODL/git/infrautils/common/features/odl-infrautils-metrics/target/feature/feature.xml, Feature: odl-infrautils-metrics 1.4.0.SNAPSHOT] Time elapsed: 14.04 sec <<< ERROR!
      org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=odl-infrautils-metrics; type=karaf.feature; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; filter:="(&(osgi.identity=odl-infrautils-metrics)(type=karaf.feature)(version>=1.4.0.SNAPSHOT)(version<=1.4.0.SNAPSHOT))" [caused by: Unable to resolve odl-infrautils-metrics/1.4.0.SNAPSHOT: missing requirement [odl-infrautils-metrics/1.4.0.SNAPSHOT] osgi.identity; osgi.identity=org.opendaylight.infrautils.metrics-impl; type=osgi.bundle; version="[1.4.0.SNAPSHOT,1.4.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.opendaylight.infrautils.metrics-impl/1.4.0.SNAPSHOT: missing requirement [org.opendaylight.infrautils.metrics-impl/1.4.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.codahale.metrics.jvm)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve io.dropwizard.metrics.jvm/4.0.2: missing requirement [io.dropwizard.metrics.jvm/4.0.2] osgi.wiring.package; filter:="(osgi.wiring.package=com.sun.management)"]]]

      This com.sun.management package seems to be officially documented (and I guess part of OpenJDK as well, not just Oracle's distro).

      In the MANIFEST.MF of ~/.m2/repository/io/dropwizard/metrics/metrics-jvm/4.0.2/metrics-jvm-4.0.2.jar there is:

      Import-Package: org.slf4j;version="[1.6.0,2.0.0)",com.codahale.metrics ;version="[4.0,5)",com.sun.management,javax.management
      Export-Package: com.codahale.metrics.jvm;uses:="com.codahale.metrics,javax.management";version="4.0.2"

            vorburger Michael Vorburger
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: