Ask Your Question
0

Missing Constraint: Import-Package: com.google.common.base

asked 2015-08-06 04:37:36 -0700

hjdeore gravatar image

Hi Guys ,

I am getting subjected error in karaf while deploying one feature .

i have imported dependency

<dependency> <groupid>com.google.guava</groupid> <artifactid>guava</artifactid> <version>19.0-rc1</version> </dependency>

Please share your idea if know how to resolve this issue.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-08-06 09:09:45 -0700

updated 2015-08-06 09:10:01 -0700

Hello,

I have had this error in the past and I solved it by adding guava in the pom file and in the features file.

Example:

features.xml:

<bundle>wrap:mvn:com.google.guava/guava/${guava.version}</bundle>

pom.xml:

<guava.version>19.0-rc1</guava.version>

Github example:

https://github.com/sniggel/odl-mdsal-cup-example/blob/master/cup-features/src/main/features/features.xml#L14

edit flag offensive delete publish link more

Comments

Thanks for the input. But ia m also getting error like could not be resolved. Reason: Missing Constraint: Import-Package: com.thetransactioncompany.jsonrpc2; version="0.0.0" can you suggest on it?

hjdeore ( 2015-08-16 22:46:12 -0700 )edit
0

answered 2015-08-30 15:15:37 -0700

Robert Varga gravatar image

ODL Lithium ships with Guava 18. Do you need 19-rc1 for a particular reason?

edit flag offensive delete publish link more

Comments

No, just took the latest from maven repo

grmontpetit ( 2015-08-31 10:24:22 -0700 )edit
0

answered 2015-12-18 04:38:52 -0700

hnoori gravatar image

Hi Guys, I have created sample NBPlugin successfully .Now i need to deploy plugin to controller.What is a procedure?I am very new to ODL.Please try to help me.

Hussain -

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2015-08-06 04:37:36 -0700

Seen: 323 times

Last updated: Dec 18 '15