java - Insert bundle into osgi failed -
dear all:
i write sample plugin , want insert bundle controller. error occurs when start in osgi, show:
gogo: bundleexception: bundle "org.opendaylight.controller.ping.plugin_0.4.0.snapshot [98]" not resolved. reason: missing constraint: import-package: org.opendaylight.controller.sal.binding.api; version="[1.1.0,2.0.0)"
referring post page, think i've got newer version of plug-in without dependencies.
the error shows minimum version number of org.opendaylight.controller.sal.binding.api 1.1.0
, , mine version 1.0-1
lookup in directory of controller/opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/plugins
.
my question how switch version 1.0-1
1.1
, can find 1.1
version of sal.binding.api in directory: ~/.m2/repository/org/opendaylight/controller/sal-binding-api/1.1-snapshot
.
as pom.xml, foud dependency 1.1
:
<dependency> <groupid>org.opendaylight.controller</groupid> <artifactid>sal-binding-api</artifactid> <version>1.1-snapshot</version> </dependency>
i think it's strange.
great appreciation anyone's reply!
best regards,
vinllen
plugin versions should in form 'major.minor.micro.build', 'major', 'minor' , 'micro' numbers, 'build' can anything. should have 1.1.0.snapshot.
Comments
Post a Comment