+controller-dev may be more suitable for such technical discussion.

> Package uses conflict: Import-Package: 
> org.opendaylight.yangtools.yang.common; version="[1.0.0,2.0.0)"

I would guess your bundle depends on that,
but your feature descriptor does not list
odl-yangtools-common feature dependency.
There may be other reasons.

> The bundle could successfully run “mvn clean install”

I recommend using inheriting from features-parent (odlparent project).
It allows you to use {{VERSION}} placeholder to simplify things,
and it runs SingleFeatureTest, catching errors like these during build.

Vratko.

-----Original Message-----
From: controller-users-boun...@lists.opendaylight.org 
[mailto:controller-users-boun...@lists.opendaylight.org] On Behalf Of ???
Sent: 21 November, 2016 09:48
To: controller-us...@lists.opendaylight.org
Subject: [controller-users] About "packages use conflict"

Hi there, 

I work on my own app (ODL plugin), and I got packages use conflict problem.

The bundle could successfully run “mvn clean install”, however during 
“feature:install” it gave me something like this:

opendaylight-user@root>feature:install algoblu-topology-manager

Error executing command: Can't install feature algoblu-topology-manager/0.0.0:

Could not start bundle mvn:com.algoblu.networkManager/topologyImpl/1.0.0 in 
feature(s) algoblu-topology-impl-1.0.0, algoblu-topology-manager-1.0.0: The 
bundle "com.algoblu.networkManager.topologyImpl_1.0.0 [328]" could not be 
resolved.

Reason: 
Package uses conflict: Import-Package: 
org.opendaylight.controller.config.yang.md.sal.binding; 
version="[1.4.0,2.0.0)”, 

Package uses conflict: Import-Package: 
org.opendaylight.controller.md.sal.binding.api; version="[1.4.0,2.0.0)”, 

Package uses conflict: Import-Package: org.opendaylight.yangtools.yang.common; 
version="[1.0.0,2.0.0)"

opendaylight-user@root>   

Might I ask how should I solve this? Or where should I start to look into?

Best Regards,

Irving

_______________________________________________
controller-users mailing list
controller-us...@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-users
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to