...
We have downloaded some starter code in the ~/onos-byon directory. It contains a root pom.xml file for the project, as well as a initial implementation of the CLI bundle. We can start by importing the entire project into IntelliJ.
Before we fetch stuff from git, run the following to make git happy.
Code Block |
---|
distributed@mininet-vm:~/onos-byon/ $ git config --global user.email "you@example.com"
distributed@mininet-vm:~/onos-byon/ $ git config --global user.name "Your Name" |
Before we start, make sure you have the latest version of the template code by running:
...
Now that we have some code implemented lets try to run it, first though we must push the bundles we just coded. So let's start by building the code:
But before you build, unset JAVA_HOME as the default points to java7. You only need to do this step once.
Code Block |
---|
distributed@mininet-vm:~/onos-byon$ echo "unset JAVA_HOME" >> ~/.bashrc
distributed@mininet-vm:~/onos-byon$ source ~/.bashrc |
Now run the build step:
Code Block |
---|
distributed@mininet-vm:~/onos-byon$ mci [INFO] Scanning for projects... ... [INFO] byon-app .......................................... SUCCESS [4.259s] [INFO] byon-cli .......................................... SUCCESS [1.643s] [INFO] byon .............................................. SUCCESS [0.104s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.719s [INFO] Finished at: Fri Dec 12 14:28:16 PST 2014 [INFO] Final Memory: 30M/303M [INFO] ------------------------------------------------------------------------ distributed@mininet-vm:~/onos-byon$ |
...