Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
Create two directories called ~/Downloads and ~/Applications. Download the Karaf 3.0.2 and Maven 3.2.32 binaries (the tar.gz versions of both) into ~/Downloads and extract it to ~/Applications. Keep the tar archives in ~/Downloads; we'll need that later.
Code Block | ||
---|---|---|
| ||
build:~$ cd; mkdir Downloads Applications build:~$ cd Downloads build:~$ wget http://download.nextag.com/apache/karaf/3.0.2/apache-karaf-3.0.2.tar.gz build:~$ wget https://archivewww.apache.org/dist/maven/maven-3/3.2.32/binaries/apache-maven-3.2.32-bin.tar.gz build:~$ tar -zxvf apache-karaf-3.0.2.tar.gz -C ../Applications/ build:~$ tar -zxvf apache-maven-3.2.32-bin.tar.gz -C ../Applications/ |
...
Code Block | ||
---|---|---|
| ||
build:~$ git clone https://gerrit.onosproject.org/onos -b onos-1.10 |
This will create a directory called onos, with the source code in it.
...
Code Block | ||
---|---|---|
| ||
mvn:org.onosproject/onos-features/1.10.0-SNAPSHOT/xml/features |
Now we are ready to build ONOS with Maven:
...
Code Block | ||
---|---|---|
| ||
build:~$ onos-package -rw-rw-r-- 1 onosuser onosuser 33395409 Dec 4 16:12 /tmp/onos-1.10.0.onosuser.tar.gz |
This creates a tar archive in /tmp .
...
Code Block | ||
---|---|---|
| ||
onos> list START LEVEL 100 , List Threshold: 50 ID | State | Lvl | Version | Name ------------------------------------------------------------------------------- 40 | Active | 80 | 2.6 | Commons Lang 41 | Active | 80 | 3.3.2 | Apache Commons Lang ... 72 | Active | 80 | 1.10.0.SNAPSHOT | onos-api 73 | Active | 80 | 1.10.0.SNAPSHOT | onos-cli ... 86 | Active | 80 | 1.10.0.SNAPSHOT | onos-of-provider-device 87 | Active | 80 | 1.10.0.SNAPSHOT | onos-of-provider-packet 88 | Active | 80 | 1.10.0.SNAPSHOT | onos-of-provider-flow 98 | Active | 80 | 1.10.0.SNAPSHOT | onos-core-net 99 | Active | 80 | 1.10.0.SNAPSHOT | onos-core-trivial <--single-instance core 112 | Active | 80 | 1.10.0.SNAPSHOT | onos-app-ifwd <--intent forwarding application onos> |
...