OpenDayLight learning and the development of primary curriculum

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/iroy33/article/details/102678015

controller Features

After Mininet connected to the controller, will form on the home page topology, topology should be noted that the start switch will not only show show host, this is the link discovery protocol (LLDP) to decide, when the host initiates traffic related host It will be displayed in the topology map.

Maven learning record

User guide to see the real face ignorant force, decided to learn maven and osgi, soon feel toward the JAVA orz
heart is very painful
link to start reference this blog, links from link

mvn archetype:generate

autogenerate,报错
default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:2.2 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-archetype-plugin:jar:2.2 (): Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:1.5.8: Could not transfer artifact org.codehaus.plexus:plexus:pom:2.0.2 from/to central (http://repo.maven.apache.org/maven2): Read timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
首先尝试用root权限
Here Insert Picture Description
尝试成功
Here Insert Picture Description

mvn compile 

Here Insert Picture Description
Note that I maven2 environment is
to be executed in mvnlearn mvn test
Here Insert Picture Description
Just download ceased to be all over again

四 理解Project Object Model

每个maven项目都包含一个pom.xml文件,文件中包含了与项目相关的所有元信息。如:项目配置文件、缺陷追踪系统、项目组织信息、Licenses、项目的路径、依赖关系等等。
项目坐标:groupID,artifactID,version是POM中必须包含的最小基本域信息
POM包含四个主要的部分

  1. 基本属性()、依赖管理。层级结构、模块和项目级别属性
  2. 构建设置:包含项目构建的细节设置
  3. 项目元数据:包含项目规范的细节,如:名字、组织机构。开发者、URL、启动时间等等
  4. 环境信息:版本控制信息、问题追踪管理、持续集成。邮件列表。仓储等等。

五 Maven的生命周期

有三个相互独立的生命周期,分别是default、clean、site
Default lifecycle:负责处理项目的编译、测试、部署,有超过20个阶段,常用的有如下:

validate:验证整个项目的信息是否可用或正确

compile:编译源代码

test:在测试套件里运行单元测试

package:为编译的代码打包

integration-test:在集成测试环境中处理package

verify:验证package是否合法

install:本地仓储中安装package

deploy:在远程仓储中安装最终的package

以上阶段都是按先后顺序执行,如果直接执行deploy,maven会先从validate开始执行,直到deploy

Clean lifecycle:处理项目的清空工作,包含以下阶段:

pre-clean:清理之前的一些预处理。

clean:清除通过之前构建生成的所有文件

post-clean:清理之后的一些处理(类似异常代码块中的finally)

Site lifecycle:项目站点文档的生成工作

pre-site:站点生成前的准备工作

site:生成文档

post-site:处理站点生成完之后的一些工作,及为部署做准备

site-deploy:给指定的web服务器部署站点文档

These are related to the content in the pom.xml in
source plug-in can see, but I do not know Gansha use.

----------------------------------------
all stems from my stupid to put forward a VMbox, the results of the entire share clipboard also did not re-installed a virtual machine. In other source, update, installed gedit, feature: install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-all make their own skilled distressed

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jre

link installed in accordance with this tutorial Google-Chrome fails, leave
love, not after Google with Baidu I was puppy

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg –i google-chrome-stable_current_amd64.deb

Direct sudo google-chrome --no-sandbox success!
3.2 Method 2: Change the file extension crx to zip, then drag and drop installation

  1. The extension is downloaded xxx.crx changed xxx.zip
    buxing
    question is, why should I follow this Scrapped now, I should honestly and learn about maven osgi

Guess you like

Origin blog.csdn.net/iroy33/article/details/102678015