Versions Compared

Key

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

...

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

Info
titleMaven vs. Buck

Beware: ONOS and ONOS core applications are currently built using buck, but the sample apps are currently built using Maven. This may change in the future! It is likely that we will move to a single build system for both ONOS and all of its applications.

Fetching the Source Code

Code Block
languagebash
git clone https://gerrit.onosproject.org/onos-app-samples
cd onos-app-samples

...

Code Block
languagebash
mvn compile
 

This will download all of the required .jar files, including ONOS as well as other required libraries, and compile the Java source into .class files.

Building the .oar files

To build the .oar files, you can run

...