Versions Compared

Key

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

...

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
languagetext
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
languagetext
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
languagetext
mvn:org.onosproject/onos-features/1.10.0-SNAPSHOT/xml/features

Now we are ready to build ONOS with Maven:

...

Code Block
languagetext
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
languagetext
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>

...