Eclipse SmartHome源码编译过程

时间:2017-09-17 11:37:03   收藏:0   阅读:1343

      Eclipse SmartHome是一个开源的构建智能家居的解决方案,应用于网关,解决了不同供应商智能设备,接入统一网关的问题,给终端用户带来了便利。很多的IOT云平台商,都是在它基础上构建而来,包括国内的华为IOT云架构。

    在本地构建Eclipse SmartHome是非常痛苦的过程,尤其是通过官方提供,通过Eclipse安装器,安装Eclipse SmartHome环境方案,多次安装都失败,跟国内墙也要关系,无奈去github下载Eclipse SmartHome源码,本地编译。(https://github.com/eclipse/smarthome    

    安装github源码上给的说明安装,执行响应命令后,发现org.eclipse.smarthome.ui.paper编译失败,Google搜索,找到原因,应该是jquery,jquery-ui找不到。找到extensions\ui\org.eclipse.smarthome.ui.paper\package.json文件,修改jquery,jquery-ui的版本号,

下载的源码,jquery-ui配置如下:

"jquery-ui": "git+https://github.com/jquery/jquery-ui.git#1.11.2",

    明白知道jquery-ui,jquery都是通过github上搜索下载的,源码给的地址,在github上是找不到的,所以我特意在github上找出jquery,jquery-ui的release版本号,按道理应该改成jquery-ui改成1.11.2比较好,我直接改成最新的版本号,如下:

    "jquery": "3.2.1",

    "jquery-ui": "1.12.1",

    重新在控制台执行mvn -DskipTests=true clean install命令后,开始编译,最后终于编译成功。


[INFO] Eclipse SmartHome Core Feature ..................... SUCCESS [  0.048 s]

[INFO] Eclipse SmartHome Extensions Feature ............... SUCCESS [  0.034 s]

[INFO] Eclipse SmartHome Karaf Feature Verification ....... SUCCESS [01:20 min]

[INFO] Eclipse SmartHome Products ......................... SUCCESS [  0.018 s]

[INFO] Eclipse SmartHome p2 Repository .................... SUCCESS [ 16.105 s]

[INFO] Eclipse SmartHome Tools ............................ SUCCESS [  0.011 s]

[INFO] Eclipse SmartHome Archetypes ....................... SUCCESS [  4.252 s]

[INFO] Eclipse Smarthome Binding Archetype ................ SUCCESS [  1.941 s]

[INFO] Eclipse Smarthome Binding Archetype Testsuite ...... SUCCESS [  0.071 s]

[INFO] Eclipse SmartHome Target Platform .................. SUCCESS [  0.800 s]

[INFO] Eclipse SmartHome Distribution ..................... SUCCESS [  1.362 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 43:39 min

[INFO] Finished at: 2017-09-16T18:06:13+08:00

[INFO] Final Memory: 511M/1656M

[INFO] ------------------------------------------------------------


本文出自 “11503181” 博客,请务必保留此出处http://11513181.blog.51cto.com/11503181/1965900

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!