Ask Your Question
0

opendaylight-startup-archetype 1.0.0-Lithium doesnot exists

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

Janki gravatar image

Hi

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=https://nexus.opendaylight.org/content/repositories/public/ -DarchetypeCatalog=https://nexus.opendaylight.org/content/repositories/public/archetype-catalog.xml

I am getting following error

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[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
roller:opendaylight-startup-archetype:1.0.0-Lithium)

What could be wrong?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

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 - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml
edit flag offensive delete publish link more
0

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] BUILD FAILURE
[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

Comments

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
0

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

hagbard gravatar image

Use -DarchetypeVersion=1.1.0-SNAPSHOT

:)

edit flag offensive delete publish link more
0

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- http://nexus.opendaylight.org/content... .

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
4 followers

Stats

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

Seen: 445 times

Last updated: Mar 29 '16