Ask Your Question

how to add dependency for a jar file

asked 2014-12-29 03:49:53 -0700

viru gravatar image

HI All,

i want to use some bgp method like getRib(), addPeer(), removePeer() etc. i have imported all the bgpcep jar file in the eclipse. Eclipse is able to intellisense the package but when i am compiling the code "mvn clean install" it show package does't exist. So, please could someone suggest how to add dependency In Pom.xml file. I mean group-Id, artifact-Id etc. Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-29 09:27:30 -0700

faizan gravatar image

If you tell in which module these methods are in it would be easier.

anyways you need to add dependency of jar in your pom.xml.

For example add

<dependency> <groupid>org.opendaylight.bgpcep</groupid> <artifactid>bgp-rib-api</artifactid> </dependency>

if Artifact: bgp-rib-api, just change the Artifact accoeding to you dependency ofjars.

Cheers, Faizan

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

1 follower


Asked: 2014-12-29 03:49:53 -0700

Seen: 250 times

Last updated: Dec 29 '14