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


ODL Build compilation issue

asked 2015-03-10 23:59:22 -0700

rmohamed gravatar image


I have downloaded the latest ODL controller code from git clone and for integration code from git clone . And for complete Helium code got it from "for PROJECT in aaa affinity bgpcep controller defense4all dlux docs groupbasedpolicy integration l2switch \ lispflowmapping odlparent opendove openflowjava openflowplugin opflex ovsdb packetcable releng/autorelease releng/builder reservation sdninterfaceapp sfc snbi snmp4sdn tcpmd5 toolkit ttp vtn yangtools; \ do git clone${PROJECT}.git ${PROJECT}; \ done"

Here the problem is, every day i am facing compilation error and have to download code latest code every day to make it success. Is there any stable version of code(git url) for complete Helium to progress.

Thanks, rmohamed

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-11 00:18:53 -0700

voltriver gravatar image

I guess that you may download the master branch code from the repository. I recommend that try it again from stable branch as followings: git clone -b stable/helium


edit flag offensive delete publish link more


Thanks Voltriver, Is there any stable version for all Helium code? Because facing same compilation issue for integration/DLUX. Thanks, rmohamed

rmohamed ( 2015-03-11 00:28:23 -0700 )edit

Hi Mohamed, i think we're saying to switch all the project to the use their stable/helium branch so update ur script with do git clone -b stable/helium${PROJECT}.git ${PROJECT} The relend builder isn't need (and maybe not autorelease)

Chris O'Shea ( 2015-03-11 00:50:26 -0700 )edit

Thanks Chris

rmohamed ( 2015-03-11 02:21:46 -0700 )edit

After compiled all the stable version of code. when we install feature getting below error \n opendaylight-user@root>feature:install odl-integration-compatible-with-all\n Error executing command: Could not start bundle mvn:org.opendaylight.yangtools/object-cache-guava/0.6.5-SNAPSHOT in feature(s) odl-yangtools-common-0.6.5-SNAPSHOT: The bundle "org.opendaylight.yangtools.object-cache-guava_0.6.5.SNAPSHOT [460]" could not be resolved. Reason: Package uses conflict: Import-Package: org.opendaylight.yangtools.objcache.spi; version="[0.6.0,1.0.0)"

rmohamed ( 2015-03-11 22:31:57 -0700 )edit

The building the complete opendaylight is a very complex task, and i believe only few people understand the order project need to built in and such, Can i ask for your end goal? normally people will compile the project they wish to edit and then the integration project, to bring in local changes.

Chris O'Shea ( 2015-03-12 00:43:39 -0700 )edit

Initially i used this script to compile all the project "for i in bgpcep controller lispflowmapping openflowjava openflowplugin ovsdb/commons/parent vtn yangtools do (cd "$i" && mvn clean install -DskipTests); done" and then compiled integration project. Please let me know if i did anything wrong. Please let me know the order.

rmohamed ( 2015-03-12 03:11:05 -0700 )edit

That's the thing there lot more to it that, I don't know who can answer it, can i ask u why u wish to compile it ur self and not take a prebuilt image?

Chris O'Shea ( 2015-03-12 03:34:42 -0700 )edit

My goal is to create new module in opendaylight. Earlier i used "mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository= -DarchetypeCatalog=" as followed the link Since now i moved to stable version, now i tried create from "mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository= -DarchetypeCatalog=" .

rmohamed ( 2015-03-12 06:42:31 -0700 )edit

And it asks 5 types of projects. Do i need to create all 5 projects or please correct me if i followed wrongly.

rmohamed ( 2015-03-12 06:43:17 -0700 )edit

Is anyone used this link to create new module? or how can we create new module in ODL?

rmohamed ( 2015-03-17 02:25:35 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-03-10 23:59:22 -0700

Seen: 208 times

Last updated: Mar 11 '15