ODL 源碼安裝【畢設】

ODL 源碼安裝

Tags: 畢設java

方法一,控制器源碼安裝,這樣安裝不帶其它的特性

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

目前遇到兩種:node

  1. 指定目錄不能建立或訪問:更改文件夾讀寫權限,進入sudo模式從新編譯
  2. pom.xml相關錯誤:將~/.m2下的settings.xml複製到/root/.m2目錄下:sudo cp ~/.m2/settings.xml /root/.m2,從新編譯
    編譯成功!

控制器運行:
cd controller/karaf/opendaylight-karaf
./target/assembly/bin/karafgit

方法二,這麼安裝會帶各類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

安裝特性:bash

  1. feature:install odl-l2switch-switch
  2. feature:install odl-openflowplugin-flow-services
  3. 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
相關文章
相關標籤/搜索