Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

You can specify version of archetype to use when generating archetype. So, do the following:

  1. Take a look at this link and go to folder of the archetype you're using. Let us say you're using startup-project archetype.

  2. Open pom.xml and set the branch to whichever you want. Let us say, stable/lithium.

  3. Check the version field in pom. For our example this turns out to be 1.1.0-SNAPSHOT
  4. Now, add -DarchetypeVersion= to the command line you use to mvn generate:archetype. In our case, it would be -DarchetypeVersion=1.1.0-SNAPSHOT. If you're following Startup Archetype Wiki, whole command would be something like mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype \ -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ \ -DarchetypeCatalog=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml -DarchetypeVersion=1.1.0-SNAPSHOT

In theory this should work. I can't confirm as I don't have access to my dev setup right now. Try it out and let us know how it goes.