Versions Compared

Key

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

...

(0) Create a working directory

Code Block
$ mkdir meowcustom
$ cd meowcustom

 

(1) Create the main application

Code Block
$ onos-create-app app org.meowster.app.custom meowster-appcustom

When asked for the version, accept the suggested default: 1.0-SNAPSHOT, and press enter.

...

Code Block
$ onos-create-app ui org.meowster.app.custom meowster-appcustom

When asked for the version, accept the suggested default: 1.0-SNAPSHOT, and press enter.

...

(3) Modify the pom.xml file to mark the module as an ONOS app:

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

(a3a) Change the description:

Code Block
<description>Meowster Sample ONOS Custom-View App</description>

(b3b) In the <properties> section, change the app name and origin:

Code Block
<onos.app.name>org.meowster.app.app<custom</onos.app.name>
<onos.app.origin>Meowster, Inc.</onos.app.origin>

Everything else in the pom.xml file should be good to go.

 

(4) Build the app:

Code Block
$ mvn clean install

...

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

 

Import into IntelliJ, if you wish

...