Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

getting error while using JSON JACKSON in Opendaylight

Hi Guys,

I am trying to use JSON/JACKSON in one feature of l2switch, but i am getting below error while installing that feature in karaf

Error executing command: Could not start bundle mvn:org.opendaylight.l2switch.mynetworktopology/mynetworktopology-impl/0.1.0-Helium in feature(s) odl-l2switch-mynetworktopology-0.1.0-Helium: The bundle "org.opendaylight.l2switch.mynetworktopology.impl_0.1.0.Helium [278]" could not be resolved. Reason: Missing Constraint: Import-Package: com.fasterxml.jackson.databind; version="[2.5.0,3.0.0)"

i have mention dependency in pom.xml as

<dependency> <groupid>com.fasterxml.jackson.core</groupid> <artifactid>jackson-core</artifactid> <version>2.5.0</version> </dependency> <dependency> <groupid>com.fasterxml.jackson.core</groupid> <artifactid>jackson-databind</artifactid> <version>2.5.0</version> </dependency> <dependency> <groupid>com.fasterxml.jackson.core</groupid> <artifactid>jackson-annotations</artifactid> <version>2.5.0</version> </dependency>

though i am getting such error.

Any idea how to resolve this error.Please share.

Thanks, Harish