编译最新版本的l2switch时出现问题 [英] Problem when compiling the latest version of l2switch

查看:218
本文介绍了编译最新版本的l2switch时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用较新版本的l2switch插件,但是当我尝试编译项目时,我收到以下错误:

I would like to work with the newer version of l2switch plugin, but when I try to compile the project i get the following errors:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project loopremover-impl: Compilation failure: Compilation failure:
[ERROR] /C:/Users/kevin/git/l2switch/loopremover/implementation/src/main/java/org/opendaylight/l2switch/loopremover/topology/TopologyLinkDataChangeHandler.java:[283,41] cannot find symbol
[ERROR]   symbol:   method getAugmentation(java.lang.Class<org.opendaylight.yang.gen.v1.urn.opendaylight.l2switch.loopremover.rev140714.StpStatusAwareNodeConnector>)
[ERROR]   location: variable nc of type org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector
[ERROR] /C:/Users/kevin/git/l2switch/loopremover/implementation/src/main/java/org/opendaylight/l2switch/loopremover/flow/InitialFlowWriter.java:[248,21] cannot find symbol
[ERROR]   symbol:   method setKey(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionKey)
[ERROR]   location: class org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :loopremover-impl

我认为问题不在我的.m2文件夹中,因为我能够正确编译Openflowplugin项目。我也使用java 8.0,我的操作系统是Windows 10(我使用maven插件通过提示编译)
我用来编译的命令是mvn clean install -U -DskipTests

I think the problem isn't in my .m2 folder, since i was able to properly compile the Openflowplugin project. Also i'm using the java 8.0 and my OS is windows 10 (i'm using a plugin of maven to compile via prompt) The command that i'm using to compile is mvn clean install -U -DskipTests

ps:我没有编辑l2switch项目的任何代码,我只是从github存储库导入了master分支并尝试编译

ps: i've not edited any code of the l2switch project, i just imported the master branch from the github repository and tried to compile

推荐答案

l2switch目前尚未由任何人维护,因此未参与Fluorine发布周期。它需要版本颠簸和代码更改以符合yangtools,mdsal等的上游更改。对于上面的编译错误, getAugmentation 现在是扩充 setKey 现在是。这些上游变化是在Fluorine和其他人之间进行的。在Fluorine发布周期中,这些都记录在ODL邮件列表和TSC JIRA项目中。 ODL社区欢迎任何重新启动项目并重新构建并继续维护项目的贡献。

l2switch is currently not being maintained by anyone and thus did not participate in the Fluorine release cycle. It needs version bumps and code changes to conform with upstream changes in yangtools, mdsal etc. For the compile errors above, getAugmentation is now augmentation and setKey is now key. These upstream changes were made in Fluorine along with others. This was all documented on the ODL mailing lists and TSC JIRA items during the Fluorine release cycle. Any contributions to reboot the project and get it building again and maintain it going forward would be welcomed by the ODL community.

这篇关于编译最新版本的l2switch时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆