pom.xml 在 opendaylight 控制器 dsbenchmark 中得到了未定义的依赖版本

pom.xml got undefined version of dependency in opendaylight controller dsbenchmark

我开始为 opendaylight 控制器项目 开发,我使用了 eclipse 安装程序高级模式 方式(link教程:https://github.com/vorburger/opendaylight-eclipse-setup) 安装 eclipse 已经与 opendaylight 控制器项目。因此,当我尝试 运行 mvn clean install 时,出现错误:

当我转到 org.opendaylight.controller.dsbenchmark 的 pom.xml 时,我注意到 pom 定义了 yang-data-impl 依赖项(groupId 和 ArtifactId 标签)但是没有版本标签,但是我试图插入一个版本标签(使用 2.0.0-SNAPSHOT)但是创建这个标签会在其他项目(org.opendaylight.controller.benchmark- 的项目中产生错误聚合器) 并且还会生成另一个错误,指出找不到版本 (2.0.0-SNAPSHOT) (Missing artifact org.opendaylight.yang:杨数据实现:jar:2.0.0-SNAPSHOT).

我是 opendaylight 控制器系统的新手,我不知道什么版本或我必须做什么,所以有人可以解释我做错了什么或者我需要阅读什么来学习如何解决这个问题?

*抱歉我的英语不流利
*我之前遇到错误,缺少依赖项,但我已经手动修复了所有这些错误(一一安装所有依赖项)
*目前这是我遇到的唯一错误


pom.xml 在这里:

<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: --><!--
Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.

This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <parent>
    <groupId>org.opendaylight.mdsal</groupId>
    <artifactId>binding-parent</artifactId>
    <version>0.12.0-SNAPSHOT</version>
    <relativePath/>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.opendaylight.controller</groupId>
  <artifactId>dsbenchmark</artifactId>
  <version>1.5.0-SNAPSHOT</version>
  <packaging>bundle</packaging>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.opendaylight.controller</groupId>
        <artifactId>mdsal-artifacts</artifactId>
        <version>1.7.0-SNAPSHOT</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>org.opendaylight.controller</groupId>
      <artifactId>benchmark-api</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.opendaylight.controller</groupId>
      <artifactId>sal-binding-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.opendaylight.controller</groupId>
      <artifactId>sal-core-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.opendaylight.yangtools</groupId>
      <artifactId>yang-data-impl</artifactId>
    </dependency>
    <dependency> <!-- ERROR HERE!!!! -->
      <groupId>org.opendaylight.yang</groupId>
      <artifactId>yang-data-impl</artifactId>


    </dependency>
  </dependencies>

  <build>
    <pluginManagement>
        <plugins>
            <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.jacoco</groupId>
                                    <artifactId>
                                        jacoco-maven-plugin
                                    </artifactId>
                                    <versionRange>
                                        [0.7.2.201409121644,)
                                    </versionRange>
                                    <goals>
                                        <goal>prepare-agent</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
  </build>
</project>

您是否阅读了 ODL Eclipse Setup FAQ 并尝试了那里的所有提示?

例如,它从 http://nexus.opendaylight.org 下载工件所需的自定义 Maven settings.xml 是自动配置的,但第一次需要重新启动 Eclipse 一次。)

不要碰任何 pom.xml - 它应该开箱即用,因为在 ODL CI 中所有这些项目(如 controller/benchmark/dsbenchmark)当然构建得很好。

您在 Eclipse 中的所有项目都是红色的,还是只有一些?