Ask Your Question
0

Run the opendaylight-karaf-distro-archetype fails

asked 2017-04-05 19:23:55 -0700

fsandoval gravatar image

Hello All,

I'm trying to create a local distribution as directed here - https://wiki.opendaylight.org/view/Ka...byStep_Guide

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-karaf-distro-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ -DarchetypeCatalog=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml

mvn reports the following:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate (default-cli) on project eman-aggregator: The desired archetype does not exist (org.opendaylight.controller:opendaylight-karaf-distro-archetype:1.0) -> [Help 1]

nexus contains the referenced archetypeRepository and archetype-catalog.xml (I don't see where '1.0' comes from)

Can someone suggest why the instructions don't work?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-10 01:15:38 -0700

thebigbg gravatar image

Hallo, i think you are missing the ODL repository (Which is not stored in the maven repository). However, Maven cannot resolve OpenDaylight artifacts by default. So try this command: "wget -q -O - https://raw.githubusercontent.com/ope... > ~/.m2/settings.xml" It will download the default setting's (settings.xml) file, which countains repositories' url, to your home/.m2 Folder. I hope it will work

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

Stats

Asked: 2017-04-05 19:23:55 -0700

Seen: 54 times

Last updated: Apr 10