Ask Your Question

how to use add-repo ?

asked 2015-12-18 01:32:28 -0700

karthik330 gravatar image

updated 2016-02-11 01:45:30 -0700

Hi , I developed a simple project .I want to add that to my ODL-Integration version. 1 .my simple Project (Path) is like hello , Its runnning successfully when i launch karaf,I can get output from restconf 2. i need to add this to ODL-integration Project .When i used repo-add i got the error.image description

3.My Path application project located at m2 is image description

4.As from the error i checked the /integration/distribution/karaf/target/assembly/system image description

5 .Please help me to solve this issue.@Vishal Thapar I want to add my path project to ODL-integration

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2015-12-18 11:25:12 -0700

jamoluhrsen gravatar image

Try "repo-add"

The upstream CSIT jobs in OpenDaylight create test features. The features are installed by configuring a karaf config file (org.apache.karaf.features.cfg) with a line like this:

featuresRepositories = mvn:org.apache.karaf.features/standard/3.0.3/xml/features,mvn:org.apache.karaf.features/enterprise/3.0.3/xml/features,mvn:org.ops4j.pax.web/pax-web-features/3.1.4/xml/features,mvn:org.apache.karaf.features/spring/3.0.3/xml/features,mvn:org.opendaylight.integration/features-integration-index/0.4.0-SNAPSHOT/xml/features,mvn:org.opendaylight.integration/features-integration-test/0.4.0-SNAPSHOT/xml/features

but, it can also be done on the karaf console, like this:

opendaylight-user@root>feature:repo-add mvn:org.opendaylight.integration/features-integration-test/0.4.0-SNAPSHOT/xml/features
Adding feature url mvn:org.opendaylight.integration/features-integration-test/0.4.0-SNAPSHOT/xml/features
opendaylight-user@root>feature:install odl-integration-compatible-with-all 
edit flag offensive delete publish link more


Hi , i tried that , but i am getting the could not find artifact error . i have attached the image below.plz refer that

karthik330 ( 2015-12-19 02:22:01 -0700 )edit

it works for me like this: feature:repo-add mvn:org.opendaylight.l2switch/features-l2switch/0.3.0-SNAPSHOT/xml/features I'm using a recent build from master branch.

jamoluhrsen ( 2015-12-23 10:15:37 -0700 )edit

plz help my updated question. @jamoluhrsen , @Mandeep ,@Nuno

karthik330 ( 2016-02-11 00:58:34 -0700 )edit

Thanks @jamoluhrsen , @Mandeep ,@Nuno, i have got the solution and comented in the last comment in this page. thanks all, your above comments helped me debugging and i made my first md-sal app.

karthik330 ( 2016-02-11 03:54:11 -0700 )edit

answered 2016-02-11 01:47:37 -0700

Mandeep gravatar image

Its long time I did anything related to ODL.. but answering based on my other answers and my setup...

Try follwoing commands:

feature:repo-add mvn:org.opendaylight.path/features-path/1.0-SNAPSHOT/xml/features

The difference is: It should be features-path instead of path-features

edit flag offensive delete publish link more


Hi @Mandeep,Thx fr ur reply,I got the solution.1.There were version mismatch in my Project vs ODL-integration . 2.Once the versions are same,we could deploy our project in ODL.As per my project structure path-features is there at m2.So its deployed successfully. thanks all @Vishal Thapar

karthik330 ( 2016-02-11 03:51:09 -0700 )edit

answered 2015-12-23 05:49:41 -0700

karthik330 gravatar image

updated 2016-02-10 06:46:29 -0700

Please check my updated question

edit flag offensive delete publish link more

answered 2016-01-28 13:04:49 -0700

guru gravatar image

Hi, When I do that I am getting the following error. Can you please help

opendaylight-user@root>repo-add mvn:org.opendaylight.cici/cici-features/1.0.0-SNAPSHOT/xml/features Adding feature url mvn:org.opendaylight.cici/cici-features/1.0.0-SNAPSHOT/xml/features

Error executing command: Error resolving artifact org.opendaylight.cici:cici-features:xml:features:1.0.0-SNAPSHOT: Could not find artifact org.opendaylight.cici:cici-features:xml:features:1.0.0-SNAPSHOT in defaultlocal (file:/opt/Lithium/distribution-karaf-0.3.2-Lithium-SR2/system/)

My local project's bundle is in the directory /opt/Lithium/distribution-karaf-0.3.2-Lithium-SR2/cici/karaf/target/assembly/system/

edit flag offensive delete publish link more


i am also facing problem.Please check my updated question. Did you get the solution?

karthik330 ( 2016-02-10 22:18:18 -0700 )edit

Same error in your command as well: try: feature:repo-add mvn:org.opendaylight.cici/features-cici/1.0.0-SNAPSHOT/xml/features

Mandeep ( 2016-02-11 01:48:39 -0700 )edit

hi guru., i faced the same issue.. just check your cici projects features.xml has the versions of the features in sync with the ODL-lithium's feature versions.. the version mismatches will cause the probelm even though we give the correct repo-add command..

balaodl ( 2016-02-11 04:30:45 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-12-18 01:32:28 -0700

Seen: 1,575 times

Last updated: Feb 11 '16