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

Java 编译最新版本的l2switch时出现问题,java,opendaylight,Java,Opendaylight,我希望使用更新版本的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插件,但当我尝试编译该项目时,会出现以下错误:

[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存储库导入了主分支,并尝试编译

l2switch目前没有任何人维护,因此没有参与发布周期。它需要版本变更和代码变更,以符合yangtools、mdsal等中的上游变更。对于上述编译错误,getAugmentation现在是augmentation,setKey现在是key。这些上游变化是在氟和其他物质中发生的。在氟释放周期内,所有这些都记录在ODL邮件列表和TSC JIRA项目中。ODL社区欢迎任何重新启动项目、重新构建项目并使其继续运行的贡献。

l2switch目前没有任何人维护,因此没有参与氟释放周期。它需要版本变更和代码变更,以符合yangtools、mdsal等中的上游变更。对于上述编译错误,getAugmentation现在是augmentation,setKey现在是key。这些上游变化是在氟和其他物质中发生的。在氟释放周期内,所有这些都记录在ODL邮件列表和TSC JIRA项目中。ODL社区欢迎任何重新启动项目、重新构建项目并保持其继续发展的贡献。

除了Tom在上面所写的内容外,此Wiki页面还详细介绍了l2switch master Neon正确构建所需的一些更改-欢迎贡献!除了Tom在上面写的内容外,这个Wiki页面还详细介绍了l2switch master Neon正确构建所需的一些更改-欢迎您的贡献!