Versions Compared

Key

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

...

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

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

When asked to confirm the properties configuration, press enter.

Code Block
languagetext
groupId: org.meowster.app
artifactId: meowster-app
version: 1.0-SNAPSHOT
package: org.meowster.app

 (Accept the remaining defaults)

(2) Overlay the UI additional components

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

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

When asked to confirm the properties configuration, press enter.(Accept the remaining defaults)


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

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

(a) Change the description:

Code Block
'Meowster<description>Meowster Sample ONOS App'App</description>

(b) Change the onos-app-nameIn the <properties> section, change the app name and origin:

Code Block
'org<onos.app.name>org.meowster.app'

(c) Change the onos-app-origin:

...

.app</onos.app.name>
<onos.app.origin>Meowster, Inc.</onos.app.origin>

 

(4) Build the app:

Code Block
$ mvn clean install

Note that your application is bundled as an .oar (ONOS Application ARchive) file in the target directory:

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