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

0

cant see "distribution" dir under "opendaylight"

asked 2015-04-06 11:23:38 -0800

kjain gravatar image

updated 2015-04-06 11:28:03 -0800

hello I am trying to compile the opendaylight code in Ubuntu. I have installed maven and git-core and have increased the MAVEN memory. after that, I clone the code from http://git.opendaylight.org/gerrit/p/controller.git . the code gets downloaded in "controller" dir. I see "opendaylight" dir under this. but, there is no "distribution" dir there.

when I try to run the command

mvn clean install

the command fails with pom errors. not sure if it is because of the absence of "distribution" dir

would appreciate any help in this regard

thanks

kavita

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-04-06 13:18:44 -0800

gyanesh gravatar image

Hi, The Distribution folder is present inside "opendaylight" folder.

"controller/opendaylight/distribution"

What error you are getting while doing "mvn install" . You can give a "git pull" command and try again.

edit flag offensive delete publish link more
0

answered 2015-04-07 05:58:51 -0800

kjain gravatar image

Thanks for the response. I understand the directory structure.

I tried Git Pull, as you have suggested. it updated from c389b6d to 43b03a8 and still no distribution under opendaylight. under controller/opendaylight, I see the following:

adsal archetype commons config md-sal netconf

Regarding the compilation error, here is the first one: Non-resolvable parent POM: Could not find artifact org.opendaylight.yangtools: binding-parent:pom:0.7.0-SNAPSHOT and "parent.relativePath" points at no local POM @ line 11 and COlumn 11 -> [Help 2]

thanks

Kavita

edit flag offensive delete publish link more

Comments

The directory structure is changed little bit: >> controller/karaf/opendaylight-karaf You don't need to look for distribution folder now. The folder name is "karaf" now. Try giving "mvn clean install" inside the opendaylight-karaf folder.

gyanesh ( 2015-04-07 06:33:35 -0800 )edit
0

answered 2015-04-07 08:13:23 -0800

faizan gravatar image

updated 2015-04-07 08:19:53 -0800

Hi Kavita :)

The code you pulled is from master branch. (You can confirm it, in cd controller nd run "git branch" command) Code in the master branch is different as compared to "stable/helium" branch and i guess you are refering old documentations for build. Move to stable helium branch or to build the code you pulled from master branch follow steps: 1. cd controller ( Here you will find apom.xml of Controller) 2. mvn clean install -DskipTests -Dcheckstyle.skip=true ( -DskipTests -Dcheckstyle.skip=true are optional, use it if any tests are failing or for checkstyle errors) 3. To run controller, go to opendaylight-karaf's bin folder and ./karaf. a promt of Opendaylight with karaf consolewill be up.

For "pom errors" ,do you have settings.xml in your local .m2 repo ?? Follow this: https://ask.opendaylight.org/question/2954/fail-to-build-controller-source-code/#2955 Regards,

Faizan

edit flag offensive delete publish link more

Comments

Thanks Faizan for the response. I will try your instructions and will let you know. Really appreciate it a lot Thanks again Kavita

kjain ( 2015-04-07 08:21:44 -0800 )edit

Thanks Faizan. it worked. when I started compiling, I ran into the issue of Maven version. after resolving that, it built successfully. Now, I am going to run ./karaf to run opendaylight. Hopefully, it will work nicely. thanks a lot Kavita

kjain ( 2015-04-07 09:39:56 -0800 )edit

@kjain Welcome :)

faizan ( 2015-04-07 10:11:05 -0800 )edit

@kjain how did you solve the Maven version issue? thanks

migmok ( 2015-08-24 08:34:30 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-06 11:23:38 -0800

Seen: 3,326 times

Last updated: Apr 07 '15