Hi Isuru, What is the JDK and Maven versions you are using?
Thanks, Jayanga *Jayanga Dissanayake* Associate Technical Lead WSO2 Inc. - http://wso2.com/ lean . enterprise . middleware email: [email protected] mobile: +94772207259 <http://wso2.com/signature> On Mon, Feb 26, 2018 at 2:26 PM, Isuru Perera <[email protected]> wrote: > Hi, > > I'm trying to upgrade Dropwizard Metrics in Carbon Metrics project to > version 4.0.2. In the metrics JVM bundle, there a new import as follows. > > Import-Package: org.slf4j;version="[1.6.0,2.0.0)",com.codahale.metrics > ;version="[4.0,5)",*com.sun.management*,javax.management > > When creating the distribution, I get an error as follows. > > [INFO] --- carbon-feature-plugin:3.1.4:install (feature-installation) @ > wso2carbon-metrics --- > [INFO] Installing a standalone p2 Director... > Installing tycho-standalone-p2-director 0.16.0. > Operation completed in 3263 ms. > [INFO] Updating eclipse.ini > [INFO] Running Equinox P2 Director Application > [INFO] Command line: > [/usr/lib/jvm/jdk1.8.0_162/jre/bin/java, -jar, > /home/isuru/work/git-projects/carbon-metrics/distribution/ > target/director/plugins/org.eclipse.equinox.launcher_1.3.200.v20151021-1308.jar, > -metadataRepository, > file:/home/isuru/work/git-projects/carbon-metrics/distribution/target/p2-repo, > -artifactRepository, > file:/home/isuru/work/git-projects/carbon-metrics/distribution/target/p2-repo, > -destination, /home/isuru/work/git-projects/carbon-metrics/distribution/ > target/WSO2Carbon/wso2/default, -bundlepool, > /home/isuru/work/git-projects/carbon-metrics/distribution/target/WSO2Carbon/wso2/lib, > -shared, > /home/isuru/work/git-projects/carbon-metrics/distribution/target/WSO2Carbon/wso2/lib/p2, > -profile, default, -profileProperties, > org.eclipse.update.install.features=true, > -roaming, -installIU, org.wso2.carbon.server.feature.group/5.2.7,org.wso2. > carbon.osgi.feature.group/5.2.7,org.wso2.carbon.runtime. > feature.group/5.2.7,org.wso2.carbon.metrics.jdbc.core. > feature.group/2.4.0.SNAPSHOT,org.wso2.carbon.metrics.das. > core.feature.group/2.4.0.SNAPSHOT,org.wso2.carbon. > secvault.feature.group/5.0.10,org.wso2.carbon.touchpoint. > feature.group/1.1.1,org.wso2.carbon.config.feature.group/2. > 1.5,org.wso2.carbon.utils.feature.group/2.0.5,org.wso2. > carbon.databridge.agent.feature.group/6.0.55,org.wso2. > carbon.databridge.commons.thrift.feature.group/6.0.55, > org.wso2.carbon.databridge.commons.feature.group/6.0.55,] > Installing org.wso2.carbon.server.feature.group 5.2.7. > Installing org.wso2.carbon.osgi.feature.group 5.2.7. > Installing org.wso2.carbon.runtime.feature.group 5.2.7. > Installing org.wso2.carbon.metrics.jdbc.core.feature.group 2.4.0.SNAPSHOT. > Installing org.wso2.carbon.metrics.das.core.feature.group 2.4.0.SNAPSHOT. > Installing org.wso2.carbon.secvault.feature.group 5.0.10. > Installing org.wso2.carbon.touchpoint.feature.group 1.1.1. > Installing org.wso2.carbon.config.feature.group 2.1.5. > Installing org.wso2.carbon.utils.feature.group 2.0.5. > Installing org.wso2.carbon.databridge.agent.feature.group 6.0.55. > Installing org.wso2.carbon.databridge.commons.thrift.feature.group 6.0.55. > Installing org.wso2.carbon.databridge.commons.feature.group 6.0.55. > Installation failed. > Cannot complete the install because one or more required items could not > be found. > Software being installed: WSO2 Carbon Metrics JDBC Core Feature > 2.4.0.SNAPSHOT (org.wso2.carbon.metrics.jdbc.core.feature.group > 2.4.0.SNAPSHOT) > *Missing requirement: JVM Integration for Metrics 4.0.2 > (io.dropwizard.metrics.jvm 4.0.2) requires 'package com.sun.management > 0.0.0' but it could not be found* > Cannot satisfy dependency: > From: org.wso2.carbon.metrics.core 2.4.0.SNAPSHOT > (org.wso2.carbon.metrics.core 2.4.0.SNAPSHOT) > To: package com.codahale.metrics.jvm [4.0.0,5.0.0) > Cannot satisfy dependency: > From: org.wso2.carbon.metrics.jdbc.core 2.4.0.SNAPSHOT > (org.wso2.carbon.metrics.jdbc.core 2.4.0.SNAPSHOT) > To: package org.wso2.carbon.metrics.core [2.4.0,3.0.0) > Cannot satisfy dependency: > From: WSO2 Carbon Metrics JDBC Core Feature 2.4.0.SNAPSHOT > (org.wso2.carbon.metrics.jdbc.core.feature.group 2.4.0.SNAPSHOT) > To: org.wso2.carbon.metrics.jdbc.core [2.4.0.SNAPSHOT] > Application failed, log file location: /home/isuru/work/git-projects/ > carbon-metrics/distribution/target/director/configuration/ > 1519634124196.log > > How can I solve this issue? > > -- > Isuru Perera > Technical Lead | WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > about.me/chrishantha > Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about> >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
