Versions Compared

Key

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

...

(3) Modify the pom.xml file to correctly label our ONOS application:

Code Block
$ cd meowster-customsample
$ vi pom.xml

(3a) Change the description:

...

From the top level project directory (the one with the pom.xml file) build the project:

Code Block
$ mvn clean install

...

Code Block
...
[INFO] Installing /Users/simonh/dev/meow/customsample/meowster-customsample/target/meowster-customsample-1.0-SNAPSHOT.oar to 
       /Users/simonh/.m2/repository/org/meowster/app/customsample/meowster-customsample/1.0-SNAPSHOT/meowster-customsample-1.0-SNAPSHOT.oar
...

 

Assuming that you have ONOS running on your local machine, you can install (and activate) the app from the command line:

Code Block
$ onos-app localhost install! target/meowster-customsample-1.0-SNAPSHOT.oar

You should see some JSON output that looks something like this:

Code Block
{
  "name":"org.meowster.app.customsample",
  "id":39,
  "version":"1.0.SNAPSHOT",
  "description":"Meowster Sample ONOS Custom-View App",
  "origin":"Meowster, Inc.",
  "permissions":"[]",
  "featuresRepo":"mvn:org.meowster.app.customsample/meowster-customsample/1.0-SNAPSHOT/xml/features",
  "features":"[meowster-customsample]",
  "state":"ACTIVE"
}

(Note that the above has been formatted for readability; what you will see will be more smushed together.)

 

After refreshing the GUI in your web browser, the navigation menu should have an additional entry:

...