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


How to set settings.xml to keep the repository stable?

asked 2015-07-20 05:09:05 -0700

labry gravatar image


I have been making MD-SAL apps for a couple of months now. However, I think the dependency libraries (artifacts) are constantly changing. And I think it is because the MD-SAL apps download dependent Opendaylight libraries that are snapshot version. How can I download stable release version? Will removing one line from settings.xml do the trick?

image description


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-20 05:37:32 -0700

Vishal Thapar gravatar image

updated 2015-07-20 05:38:46 -0700

I don't think modifying settings.xml will help. If you want to use stable release versions, you will have to change the dependencies in your pom files. Take a look at to find out exact version no. for your dependency

e.g. Let us say you are using odl-parent. will give you versions available for odl-parent. If you want to use Lithium release, use 1.5.0-Lithium in your pom file. Repeat for other dependencies.

Just make sure you use same release for all. i.e. if you're using Lithium for one, ue Lithium for all others and not mix up Helium-SR1, Helium-SR2 etc.

EDIT: Forgot to mention, other option is to give -nsu or -O [for offline] options when running mvn clean install. You'll have to be careful to use these everytime, maybe write a macro/alias to compile.

edit flag offensive delete publish link more


Your answer definitely helped. Below command solves my problem. Anybody struggling with the same can solve it! mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository= -DarchetypeCatalog= -DarchetypeVersion=1.0.0-Lithium

labry ( 2015-07-25 08:40:56 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-07-20 05:09:05 -0700

Seen: 151 times

Last updated: Jul 20 '15