onos 1.8 yang

问题一:When I compile apps/tenbi/ module, the result of compiling onos-app-tenbi-yangmodel failed. Error information is “Failed to execute goal org.onosproject:onos-yang-maven-plugin:1.10-SNAPSHOT:yang2java (default) on project onos-app-tenbi-yangmodel: Execution default of goal org.onosproject:onos-yang-maven-plugin:1.10-SNAPSHOT:yang2java failed: Failed to prepare generate code entry for in ietf-inet-types at 1 at 0 in /home/yby/onos-1.8/onos-master/apps/tenbi/yangmodel/src/main/yang/ietf-inet-types.yangAttributes is reused due to YANG naming. probably your previous build would have failed -> [Help 1]”

669753871168921926

731697969709152122

原因分析:如果有yang文件的编译的话,会在用户主目录下生成一个新的名为onos-1的文件夹,用来保存上次编译yang文件生成的java代码。如果有其他同样的yang文件被编译,就会造成冲突。一个这么牛逼的开源项目,竟然用这种手段来处理信息。。

577165974537388601

 

问题二:karaf版本3.0.5   maven版本3.3.9 (注意:严格匹配版本号)