无法使用Maven原型为opendaylight创建项目

无法使用Maven原型为opendaylight创建项目,maven,sdn,opendaylight,Maven,Sdn,Opendaylight,我希望使用Maven原型为opendaylight创建项目并导入eclipse,但在为创建项目键入此代码时 mvn archetype:generate -DarchetypeGroupId=org.OpenDaylight.controller -DarchetypeArtifactId=OpenDaylight-startup-archetype -DarchetypeRepository=https://nexus.OpenDaylight.org/content/repositories

我希望使用Maven原型为opendaylight创建项目并导入eclipse,但在为创建项目键入此代码时

mvn archetype:generate -DarchetypeGroupId=org.OpenDaylight.controller -DarchetypeArtifactId=OpenDaylight-startup-archetype -DarchetypeRepository=https://nexus.OpenDaylight.org/content/repositories/public/ -DarchetypeCatalog=https://nexus.OpenDaylight.org/content/repositories/public/archetype-catalog.xml
这将导致错误

 Generating project in Interactive mode
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3.004 s
    [INFO] Finished at: 2018-04-30T19:47:52+04:30
    [INFO] Final Memory: 14M/138M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-   
     plugin:3.0.1:generate (default-cli) on project standalone-pom: archetypeCatalog 'https://   
     nexus.OpenDaylight.org/content/repositories/public/archetype-catalog.xml' is not  
    supported anymore. Please read the plugin documentation for details. -> [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

如何解决此问题?或如何创建新项目?

编辑:选中“创建简单项目”时将显示此选项

我总是喜欢通过Eclipse开始构建ODL应用程序

选择“
createmaven Project
”并单击next,它将要求您填写各种详细信息。请填写以下详细信息:

工件:

  • 组ID:org.opendaylight.yourprojectname
  • 工件ID:yourprojectname
  • 版本:1.0.0-SNAPSHOT
  • 包装:聚甲醛
家长

  • 组ID:org.opendaylight.odlparent
  • 工件ID:捆绑父项
  • 版本:1.8.1-Carbon(或任何其他稳定版本)
等待eclipse下载所有相关组件

PS:我假设您更新了settings.xml文件。如果没有,则使用此选项相应地更新现有的settings.xml


现在您可以开始了。

关于如何使用Maven原型的官方文档如下:

它在以前的版本中或多或少被破坏了,并且最近被固定在主分支上,用于将来的氟释放;更多详情请点击这里:和