当前位置:网站首页>ODL framework project construction trial -demo
ODL framework project construction trial -demo
2022-07-03 06:09:00 【vincentwc】
Preface
Recently started using odl frame , For rigid contact odl I still need a little adaptation period , Feeling odl Compared with spring Too little , Record your learning experience here
One 、 Code acquisition
github Address Let's sun it out first , Those who are interested can go and have a look
odl Learning documents , It's provided on the official website toaster\demo, If you are interested, you can have a look at
Two 、 Step breakdown
First step , modify maven Of settings.xml file ,odl The compilation of requires setting Configure the corresponding remote library in the file , The settings Documents can be obtained from odlparent Get... From the project , Replace setting file , Add your corresponding local warehouse address , You can start
The second step , Create project ,cmd Go to the appropriate directory , Then enter the following command , Start project creation , As shown below .
Enter the command line :
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=https://nexus.opendaylight.org/content/repositories/opendaylight.release -DarchetypeCatalog=remote -DarchetypeVersion=1.0.1-Lithium-SR1 -DarchetypeCatalog=internalF:\odlLearn>mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=https://nexus.opendaylight.org/content/repositories/opendaylight.release -DarchetypeCatalog=remote -DarchetypeVersion=1.0.1-Lithium-SR1 -DarchetypeCatalog=internal
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repository with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
Define value for property 'groupId': com.vincent.example
Define value for property 'artifactId': example
Define value for property 'version' 1.0-SNAPSHOT: :
Define value for property 'package' com.vincent.example: :
Define value for property 'classPrefix' Example: :
Define value for property 'copyright': Example
Confirm properties configuration:
groupId: com.vincent.example
artifactId: example
version: 1.0-SNAPSHOT
package: com.vincent.example
classPrefix: Example
copyright: Example
Y: : y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: opendaylight-startup-archetype:1.0.1-Lithium-SR1
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.vincent.example
[INFO] Parameter: artifactId, Value: example
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.vincent.example
[INFO] Parameter: packageInPathFormat, Value: com/vincent/example
[INFO] Parameter: classPrefix, Value: Example
[INFO] Parameter: package, Value: com.vincent.example
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: copyright, Value: Example
[INFO] Parameter: groupId, Value: com.vincent.example
[INFO] Parameter: artifactId, Value: example
[WARNING] Don't override file F:\odlLearn\example\pom.xml
[INFO] Project created from Archetype in dir: F:\odlLearn\example
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.894 s
[INFO] Finished at: 2019-08-31T10:06:09+08:00
[INFO] ------------------------------------------------------------------------
F:\odlLearn>expand , About DarchetypeVersion Version of , You may not want to develop 1.0.1-Lithium-SR1 This version , So what versions are available ? You can check this website again ,https://nexus.opendaylight.org/content/repositories/opendaylight.release/archetype-catalog.xml, Select the version you need to create the project
The third step , Project creation complete , At this point, you get the project file tree as shown in the figure below
F:.
├─api
│ └─src
│ └─main
│ └─yang
├─artifacts
├─features
│ └─src
│ └─main
│ └─features
├─impl
│ └─src
│ ├─main
│ │ ├─config
│ │ ├─java
│ │ │ ├─com
│ │ │ │ └─vincent
│ │ │ │ └─example
│ │ │ │ └─impl
│ │ │ └─org
│ │ │ └─opendaylight
│ │ │ └─yang
│ │ │ └─gen
│ │ │ └─v1
│ │ │ └─urn
│ │ │ └─opendaylight
│ │ │ └─params
│ │ │ └─xml
│ │ │ └─ns
│ │ │ └─yang
│ │ │ └─example
│ │ │ └─impl
│ │ │ └─rev141210
│ │ └─yang
│ └─test
│ └─java
│ ├─com
│ │ └─vincent
│ │ └─example
│ │ └─impl
│ └─org
│ └─opendaylight
│ └─yang
│ └─gen
│ └─v1
│ └─urn
│ └─opendaylight
│ └─params
│ └─xml
│ └─ns
│ └─yang
│ └─example
│ └─impl
│ └─rev141210
└─karaf
F:\odlLearn\example>Step four 、cmd To example Folder , Compile the project mvn clean install -DskipTests, Compilation takes a long time , You can do something else , Waiting for success
Step five 、 Project start ,karaf
win10 start-up karaff Flash back problem solving
modify karaf\sdotn-distribution\target\assembly\etc In the catalog system.properties file , Add... At the end org.osgi.framework.os.name=Win32.win7 Directly start
Once the boot is complete , adopt log:display | grep example Command line correlation
3、 ... and 、 Thank you very much
Thank you very much :
http://www.bubuko.com/infodetail-2229492.html
https://www.cnblogs.com/zjd1396/p/9993655.html
边栏推荐
- 88. Merge two ordered arrays
- Analysis of Clickhouse mergetree principle
- Exportation et importation de tables de bibliothèque avec binaires MySQL
- Sorry, this user does not exist!
- Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
- phpstudy设置项目可以由局域网的其他电脑可以访问
- Common exceptions when Jenkins is released (continuous update...)
- Simple solution of small up main lottery in station B
- Leetcode problem solving summary, constantly updating!
- Jedis source code analysis (II): jediscluster module source code analysis
猜你喜欢

Simple handwritten ORM framework

MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)
![[teacher Zhao Yuqiang] use Oracle's tracking file](/img/0e/698478876d0dbfb37904d7b9ff9aca.jpg)
[teacher Zhao Yuqiang] use Oracle's tracking file

为什么网站打开速度慢?

Oauth2.0 - use database to store client information and authorization code
![[teacher Zhao Yuqiang] index in mongodb (Part 1)](/img/2d/277ec737f2a7065831a19d036e61e1.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 1)

SVN分支管理

Loss function in pytorch multi classification

Core principles and source code analysis of disruptor
![[teacher Zhao Yuqiang] Flink's dataset operator](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] Flink's dataset operator
随机推荐
If function of MySQL
Core principles and source code analysis of disruptor
Leetcode problem solving summary, constantly updating!
【系统设计】邻近服务
How to create your own repository for software packages on Debian
Code generator - single table query crud - generator
Advanced technology management - do you know the whole picture of growth?
Get a screenshot of a uiscrollview, including off screen parts
Tabbar settings
Migrate data from Amazon aurora to tidb
Apt update and apt upgrade commands - what is the difference?
Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
Synthetic keyword and NBAC mechanism
[teacher Zhao Yuqiang] Flink's dataset operator
Es remote cluster configuration and cross cluster search
Why should there be a firewall? This time xiaowai has something to say!!!
Interesting research on mouse pointer interaction
Deep learning, thinking from one dimensional input to multi-dimensional feature input
[teacher Zhao Yuqiang] kubernetes' probe
Understand one-way hash function