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


opendaylight-startup-archetype 1.0.0-Lithium doesnot exists

asked 2015-08-11 01:24:09 -0700

Janki gravatar image


I am trying to develop a bundle in ODL Lithium. I am following its developer guide. While creating archetype

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository= -DarchetypeCatalog=

I am getting following error

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:16.723s
[INFO] Finished at: Tue Aug 11 13:24:17 IST 2015
[INFO] Final Memory: 12M/130M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.3:generate (default-cli) on project standalone-pom: The desired archetype does
not exist (org.opendaylight.controller:opendaylight-startup-archetype:1.0.0-Lith
ium) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on pro
ject standalone-pom: The desired archetype does not exist (org.opendaylight.cont

What could be wrong?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2015-08-12 04:11:18 -0700

happysmile gravatar image

Have you updated ~/.m2/settings.xml for maven?

# Shortcut command for grabbing settings.xml
cp -n ~/.m2/settings.xml{,.orig} ; \wget -q -O - > ~/.m2/settings.xml
edit flag offensive delete publish link more

answered 2015-08-12 22:32:31 -0700

Janki gravatar image

Posting as answer as comment space is not enough.

Yes, I am using the above mentioned settings.xml file. Now getting another error

[INFO] --- maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom ---
[WARNING] Error initializing: org.codehaus.plexus.velocity.DefaultVelocityComponent@7519576
java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.742 s
[INFO] Finished at: 2015-08-13T11:00:15+05:30
[INFO] Final Memory: 8M/24M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate failed: A required class was missing while executing org.apache.maven.plugins:maven-archetype-plugin:2.3:generate: org/apache/commons/lang/StringUtils
edit flag offensive delete publish link more


Yes! for now i solved this problem this way: 1. remove ~/.m2 folder 2. create your project using "mvn archetype:generate ... " 3. update your setting.xml using the method i said 4. be happy!

happysmile ( 2015-08-15 00:08:47 -0700 )edit

answered 2015-08-21 08:47:35 -0700

hagbard gravatar image

Use -DarchetypeVersion=1.1.0-SNAPSHOT


edit flag offensive delete publish link more

answered 2016-03-29 02:10:35 -0700

sidhant13 gravatar image

Using -DarchetypeVersion=1.2.0-SNAPSHOT worked for me instead. The trick is to find the latest version of artifactId 'opendaylight-startup-archetype' from the catalog file you are using- .

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

Question Tools



Asked: 2015-08-11 01:24:09 -0700

Seen: 494 times

Last updated: Mar 29 '16