小编典典

编译最新版本的l2switch时出现问题

java

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

[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

ps:我还没有编辑l2switch项目的任何代码,我只是从github仓库导入了master分支,并试图进行编译


阅读 392

收藏
2020-11-30

共1个答案

小编典典

目前尚无任何人维护l2switch,因此未参与氟释放周期。它需要版本变更和代码更改,才能与yangtools,mdsal等的上游更改保持一致。对于上述编译错误,
getAugmentation 现在是 增强setKey 现在是 key
。这些上游变化是在氟中进行的。在氟发布周期中,所有这些都记录在ODL邮件列表和TSC
JIRA项目中。ODL社区欢迎为重新启动该项目并使其重新构建并维护该项目而做出的任何贡献。

2020-11-30