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

Application Development Tutorial - Archetype Version

I am trying to follow the Application Development Tutorial, here: https://wiki.opendaylight.org/view/ControllerCoreFunctionalityTutorials:ApplicationDevelopment_Tutorial

The project was created after the opendaylight-startup-archetype, as described in the tutorial:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller \
-DarchetypeArtifactId=opendaylight-startup-archetype \
-DarchetypeVersion=1.2.0-SNAPSHOT \
-DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ \
-DarchetypeCatalog=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml

The HelloProvider class (at impl/src/main/java/org/opendaylight/hello/impl/HelloProvider.java), however, doesn't correspond to what is described in the tutorial.

The tutorial version, for example, has:

@Override
    public void onSessionInitiated(ProviderContext session) {
        LOG.info("HelloProvider Session Initiated");
    }

While mine has:

/**
  * Method called when the blueprint container is created.
  */
  public void init() {
     LOG.info("HelloProvider Session Initiated");
  }

Aside for other differences. I checked the archetype source code here and it really doesn't match what's described at the tutorial.

Am I missing anything, or did the 1.2.0-SNAPSHOT version of the archetype really changed? According to the answer for this question, it seems that it has something to do to OpenDaylight using Blueprint, and that I should use a different version of the archetype. What are the implicantions of this change?

Thanks in advance.