Ask Your Question
0

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

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

labry gravatar image

Hi,

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

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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 https://nexus.opendaylight.org/content/repositories/opendaylight.release/ to find out exact version no. for your dependency

e.g. Let us say you are using odl-parent. https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/odlparent/odlparent/ 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

Comments

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=http://nexus.opendaylight.org/content/repositories/opendaylight.release/ -DarchetypeCatalog=http://nexus.opendaylight.org/content/repositories/opendaylight.release/archetype-catalog.xml -DarchetypeVersion=1.0.0-Lithium

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

Question Tools

Follow
2 followers

Stats

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

Seen: 139 times

Last updated: Jul 20 '15