Developing Apps on the OpenDaylight controller的问题
来源:互联网 发布:在淘宝买手机卡靠谱吗 编辑:程序博客网 时间:2024/05/17 06:40
Overview
之前在学习opendaylight,看了一些官方文档http://docs.opendaylight.org/en/stable-carbon/developer-guide/developing-apps-on-the-opendaylight-controller.html
按照上面的提示进行开发,总是没法创建项目,错误是archetype-catalog已经不能再用了。
Resolution
查看了maven和ODL的很多资料,发现这波操作的要点:
1. ODL是用自己的MVN仓库,不是MVN官方的,所以只能用ODL的,其他通通不行
2. maven的使用没那么简单,我之前直接复制
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype \-DarchetypeRepository=https://nexus.opendaylight.org/content/repositories/public/ \-DarchetypeCatalog=https://nexus.opendaylight.org/content/repositories/public/archetype-catalog.xml
在命令行中运行(环境配置没问题),各种failed。
最后,没办法,
- 把.m2下面的repository里面的org.apache.maven删了
- 我把远程的
https://nexus.opendaylight.org/content/repositories/public/archetype-catalog.xml下载下来,放到本地的repository根目录下(不是.m2目录); - 在settings.xml中将odl的库添加为mirror
<mirrors> <mirror> <id>yishanchuan</id> <mirrorOf>*</mirrorOf> <name>ODL</name> <url>https://nexus.opendaylight.org/content/repositories/public/</url> </mirror> </mirrors>
- 这时候执行以下命令
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=https://nexus.opendaylight.org/content/repositories/public/ -DarchetypeCatalog=local -X
-X是调试,会显示所有mvn操作的细节
阅读全文
0 0
- Developing Apps on the OpenDaylight controller的问题
- 推荐:Quick tips: Developing apps for the BlackBerry PlayBook
- Developing OSGi Components for OpenDaylight
- Developing Better PhoneGap Apps
- android developing RESTful android apps
- Start Developing iOS Apps Today
- Start Developing iOS Apps Today
- Start Developing iOS Apps Today
- Start Developing iOS Apps Today
- start developing ios apps today
- Go on talk about the process of developing software.
- 如何建立OpenDaylight Controller集群
- The apps that get featured on the iOS App Store
- Developing on Android
- Securely Developing on Mobile
- 5 Weather Forecast API for developing apps
- Developing iOS7 Apps For iPhone and iPad
- Start Developing iOS Apps (Swift) 中文翻译版
- x-window简介
- Kolakoski序列--输入任意数,输出前n个数
- linux修改hosts
- 数据共享及进程池和回调函数
- 机器学习中的数学(5)——拉格朗日乘子法和KKT条件
- Developing Apps on the OpenDaylight controller的问题
- Java 编程思想(七) BIO/NIO/AIO的区别(Reactor和Proactor的区别)
- iOS 音视频采集与编码
- ZOJ 3424 Rescue(和式变形递推公式降低复杂度)
- POJ 3461 Oulipo(KMP模板题)
- Xutils3自定义实体属性
- 关于linux中shell的一些小问题解决办法
- STM32 BootLoader设计
- JMeter常用插件的安装和使用