ODL 源码安装
Tags: 毕设
方法一,控制器源码安装,这样安装不带其它的特性
cd ODL
sudo git clone https://git.opendaylight.org/gerrit/p/controller.git
cd controller
sudo git checkout stable/oxygen
git branch
mvn clean install -DskipTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true
目前遇到两种:
- 指定目录不能创建或访问:更改文件夹读写权限,进入sudo模式重新编译
- pom.xml相关错误:将~/.m2下的settings.xml复制到/root/.m2目录下:sudo cp ~/.m2/settings.xml /root/.m2,重新编译
编译成功!
控制器运行:
cd controller/karaf/opendaylight-karaf
./target/assembly/bin/karaf
方法二,这么安装会带各种feature
cd ODL
sudo mkdir integration
cd integration
//这个可以不git应该
sudo git clone https://git.opendaylight.org/gerrit/p/integration/packaging.git
//获取源码
sudo git clone https://git.opendaylight.org/gerrit/p/integration/distribution.git
cd distribution
sudo git checkout stable/oxygen
git branch
mvn clean install -DskipTests
安装特性:
- feature:install odl-l2switch-switch
- feature:install odl-openflowplugin-flow-services
- feature:install odl-mdsal-all
feature:install odl-dlux-core odl-dluxapps-nodes odl-dluxapps-topology odl-dluxapps-yangui odl-dluxapps-yangvisualizer odl-dluxapps-yangman