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


Not able to Pull and Hack the code, something is going Developers Guide

asked 2015-02-19 01:48:32 -0700

illord gravatar image

updated 2015-02-19 02:57:36 -0700

Following this guide, I tried to pull the code in the anonymous way and then I got:

git clone

All the next steps refers to a directory called distribution (e.g. 'cd opendaylight/distribution/opendaylight/') which doesn't exist in the controller directory that I pulled.

So I'm not able to see the controller code and to work on it, I tried all possible ways. Could you help me? How can I read the code and modify it? I tried also to pull it through Eclipse following step by step this guide but the problem is always the same, there is no distribution directory in the controller directory.

Thank you for your time

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-02-20 04:29:30 -0700

Dana gravatar image

Correct link to guide

edit flag offensive delete publish link more

answered 2015-02-19 02:29:09 -0700

faizan gravatar image

updated 2015-02-19 02:31:15 -0700

Hi illord :)

After you pull the code.

cd controller and run the cmd, " mvn clean install". You can also run "mvn clean install -DskipTests" if you not want to run test cases or in case of any test case fails. Or "mvn clean install -DskipTests -Dcheckstyle.skip=true" to skip both test and checkstyle error

after buliding you controller, run it with karaf :) , ./karaf is in assembly/bin folder , it should work.

Regards, Faizan

edit flag offensive delete publish link more


Hi Faizan, thank you very much for your answer. The problem is that there's no *distribution* directory in the controller directory that I get for Git

illord ( 2015-02-19 02:59:03 -0700 )edit

This is because the code you pull belongs to master branch which version and directory stucture is different from what document you are refering. To build master branch code, you pull the code,then go into controller i.e. cd controller and build it as explained above.

faizan ( 2015-02-19 06:27:47 -0700 )edit

If you want to refer the document steps and not necessarily have to work on master code base ,in that case i will suggest you to pull the stable helium branch which is relatively more stable too. To pull stable helium branch: "git clone -b stable/helium"

faizan ( 2015-02-19 06:31:09 -0700 )edit

answered 2015-02-20 01:12:51 -0700

Vishal Thapar gravatar image

You're pulling code off the master branch where things have changed. Instead of osgi it uses karaf.

cd controller/karaf/opendaylight-karaf/target/assembly directory and run bin/karaf to launch controller.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-02-19 01:48:32 -0700

Seen: 512 times

Last updated: Feb 20 '15