【问题标题】:Use maven to generate ODL code Framework in windowswindows下使用maven生成ODL代码Framework
【发布时间】:2018-10-29 13:02:34
【问题描述】:

当我使用这个命令时:

mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/public/ -DarchetypeCatalog=remote -DarchetypeVersion=1.3.1-Carbon

那么结果是

Error: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.opendaylight.controller:opendaylight-startup-archetype:1.3.1-Carbon)

【问题讨论】:

    标签: opendaylight


    【解决方案1】:

    OpenDaylight 项目(目前)还没有使用 Maven Central 来发布工件,因此您需要告诉 Maven ODL 存储库在哪里。为此,您需要按照开发人员文档here 中的说明设置您的$HOME/.m2/settings.xml 文件。我建议您使用最新的原型版本 (1.6.0),因为如果遇到问题,您最有可能获得支持。

    【讨论】:

    • 如果答案足够完整,可以解决您的问题,请接受作为解决方案的答案。
    【解决方案2】:

    请关注the official documentation on docs.opendaylight.org

    archetypes-dev mailing list 上的社区也可以提供帮助。

    【讨论】:

      猜你喜欢
      • 2020-05-29
      • 2016-06-12
      • 2017-12-08
      • 2012-10-15
      • 2021-10-28
      • 2011-10-05
      • 2011-06-11
      • 2015-06-29
      • 2014-11-19
      相关资源
      最近更新 更多