Versions Compared

Key

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

Prerequisites

Before building the ONOS Sample Apps, you should make sure that you have installed Java, git, and Maven.

Fetching the Source Code

git clone https://gerrit.onosproject.org/onos-app-samples

Selecting the ONOS Version

By default, the sample apps will be built against a nightly snapshot of ONOS master.

If you wish to build against a released version of ONOS rather than a random snapshot, you can edit pom.xml to specify a specific ONOS release. For example:

Code Block
languagexml
<parent>
 <groupId>org.onosproject</groupId>
 <artifactId>onos</artifactId>
 <version>1.8.2</version>
</parent>

Basic Compilation

To simply compile and check for errors, you can run

Code Block
languagebash
mvn compile

Building the .oar files

To build the .oar files, you can run

Code Block
languagebash
mvn install

 

 

 This is a placeholder for instructions on how to download, build, and run the ONOS sample applications.