Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this tutorial, we will create a CBA using the archetype-blueprint Archetypes and compile and deploy it. Before you begin, you will need to have installed Maven, but you no longer need to manually install the archetype-blueprin Archetypes as they are in the Central Maven Repository now, so you just need to make sure your index is up to date. 

Maven archetypes can be thought of as templates that are installed into the Maven environment and can be used to generate new applications from scratch that are pre-configured for certain environments. We use this to generate CBA boilerplate code.

Boilerplate CBA from the command line.

Requirement:  Please add the following repository to your maven settings.xml once. This helps the maven-archetype-plugin to fetch the correct archetype.

Code Block
 <repositories>
    ---
    <repository>
        <!-- id expected by maven-archetype-plugin to avoid fetching from everywhere -->
        <id>archetype</id>
        <url>http://nexus.onap.org/content/repositories/snapshots</url>
        <releases>
          <enabled>true</enabled>
          <checksumPolicy>fail</checksumPolicy>
        </releases>
        <snapshots>
          <enabled>true</enabled>
          <checksumPolicy>warn</checksumPolicy>
        </snapshots>
    </repository>
    ---
</repositories>

...