日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

OpenDaylight开发hello-world项目之开发工具安装

發布時間:2023/12/2 编程问答 55 豆豆
生活随笔 收集整理的這篇文章主要介紹了 OpenDaylight开发hello-world项目之开发工具安装 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

?

OpenDaylight開發hello-world項目之開發環境搭建

OpenDaylight開發hello-world項目之開發工具安裝

OpenDaylight開發hello-world項目之代碼框架搭建

?

?

?在ODL開發之前,要安裝好開發環境。ODL使用java語言開發,所以要安裝好java。ODL的代碼框架是有maven這個工具來管理的,所以要在開發之前安裝Java和maven。

?

?

?

Maven簡介:

?

Maven是一個項目管理和綜合工具。Maven提供了開發人員構建一個完整的生命周期框架。開發團隊可以自動完成項目的基礎工具建設,Maven使用標準的目錄結構和默認構建生命周期。

在多個開發團隊環境時,Maven可以設置按標準在非常短的時間里完成配置工作。由于大部分項目的設置都很簡單,并且可重復使用,Maven讓開發人員的工作更輕松,同時創建報表,檢查,構建和測試自動化設置。

?

原文出自【易百教程】,更多內容請訪問:https://www.yiibai.com/maven

?

?

一、安裝Java

?

apt update

?

?

apt install openjdk-8-jdk

?

java -version

?

?

?二、安裝maven

apt install maven

?

查看mvn版本

?

mvn -v

?

配置mvn的setting.xmlwen文件,能夠獲取ODL創建時需要的jar包

?

wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml

?

?

?

setting.xml文件

<?xml version="1.0" encoding="UTF-8"?> <!-- vi: set et smarttab sw=2 tabstop=2: --> <!--Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.This program and the accompanying materials are made available under theterms of the Eclipse Public License v1.0 which accompanies this distribution,and is available at http://www.eclipse.org/legal/epl-v10.html --> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><profiles><profile><id>opendaylight-release</id><repositories><repository><id>opendaylight-mirror</id><name>opendaylight-mirror</name><url>https://nexus.opendaylight.org/content/repositories/public/</url><releases><enabled>true</enabled><updatePolicy>never</updatePolicy></releases><snapshots><enabled>false</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>opendaylight-mirror</id><name>opendaylight-mirror</name><url>https://nexus.opendaylight.org/content/repositories/public/</url><releases><enabled>true</enabled><updatePolicy>never</updatePolicy></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository></pluginRepositories></profile><profile><id>opendaylight-snapshots</id><repositories><repository><id>opendaylight-snapshot</id><name>opendaylight-snapshot</name><url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>opendaylight-snapshot</id><name>opendaylight-snapshot</name><url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>opendaylight-release</activeProfile><activeProfile>opendaylight-snapshots</activeProfile></activeProfiles> </settings>

?

轉載于:https://www.cnblogs.com/goldsunshine/p/11175698.html

總結

以上是生活随笔為你收集整理的OpenDaylight开发hello-world项目之开发工具安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。