Environment
Ubuntu 14.04.1
OpenJDK-1.7
Maven3
Build The Code
git clone https://git.opendaylight.org/gerrit/p/snmp4sdn.git
cd snmp4sdn
mvn clean install
ls snmp4sdn/tartget/snmp4sdn-x.x.x-SNAPSHOT.jar
Install
Install at Start
cp snmp4sdn/snmp4sdn/target/snmp4sdn-x.x.x-SNAPSHOT.jar opendaylight/plugins/
Install at OSGi ( ### == id @ <ss snmp> )
install file:<file path to snmp4sdn-x.x.x-SNAPSHOT.jar>
start ###
Check Information
In OSGi
ss snmp
Trouble Shooting
How to install maven3 in ubuntu?
apt-get remove maven2 ( if you have installed it )
add-apt-repository “deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main”
apt-get update
apt-get install maven3
ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn
When doing MVN CLEAN INSTALL , faild with lost <JAVA_HOME>/jre/lib/tools.jar
apt-get install openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headline openjdk-7-jre-lib ( make sure all component installed )
export JAVA_HOME=”/usr/lib/jvm/java-1.7.0-openjdk-amd64/”
搶先發佈留言