使用 OpenDaylight 启动器原型不起作用
Using OpenDaylight starter archetype does not work
尝试按照 opendaylight developer tutorial 在控制器上获取初始 hello world 应用程序 运行,但是 运行 命令
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
导致错误
No plugin found for prefix ' -DarchetypeRepository=https' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/andrew/.m2/repository), opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/), opendaylight-mirror (https://nexus.opendaylight.org/content/repositories/public/), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
我已经成功使用命令
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default) on project test-impl: You have 1 Checkstyle violation. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default) on project test-impl: You have 1 Checkstyle violation. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
有什么解决方法(或其他获取第一个应用程序的方法)的想法吗?
我在 OpenDaylight 中找到了解决方案 forum。
Please remove
-DarchtypeCatlog=http://nexus.opendaylight.org/content/repositories/opendaylight.release/archetype-catalog.xml
and execute following command.
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release -DarchetypeVersion=1.4.0
从 this link 开始,您可以使用以下命令:
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype \
-DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/<Snapshot-Type>/ \
-DarchetypeCatalog=remote -DarchetypeVersion=<Archetype-Version>
同时替换 Snapshot-Type
和 Archetype-Version
如下:
使用this search on ODL's Nexus repository:
- 对于
Oxygen dev snapshot
使用 Snapshot-Type=opendaylight.snapshot
和 Archetype-Version=1.5.0-SNAPSHOT
- 对于
Nitrogen SR1 snapshot
使用 Snapshot-Type=opendaylight.snapshot
和 Archetype-Version=1.4.1-SNAPSHOT
- 对于
Nitrogen release
使用 Snapshot-Type=opendaylight.release
和 Archetype-Version=1.4.0
- 对于
Carbon
使用 Snapshot-Type=opendaylight.release
和 Archetype-Version=1.3.0-Carbon
- 对于
Boron SR0
使用 Snapshot-Type=opendaylight.release
和 Archetype-Version=1.2.0-Boron
- 对于
Boron SR1
使用 Snapshot-Type=opendaylight.release
和 Archetype-Version=1.2.1-Boron-SR1
- 对于
Boron SR2
使用 Snapshot-Type=opendaylight.release
和 Archetype-Version=1.2.2-Boron-SR2
- 对于
Boron snapshot
使用 Snapshot-Type=opendaylight.snapshot
和 Archetype-Version=1.2.2-SNAPSHOT
您还可以看到。
尝试按照 opendaylight developer tutorial 在控制器上获取初始 hello world 应用程序 运行,但是 运行 命令
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
导致错误
No plugin found for prefix ' -DarchetypeRepository=https' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/andrew/.m2/repository), opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/), opendaylight-mirror (https://nexus.opendaylight.org/content/repositories/public/), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
我已经成功使用命令
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default) on project test-impl: You have 1 Checkstyle violation. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default) on project test-impl: You have 1 Checkstyle violation. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
有什么解决方法(或其他获取第一个应用程序的方法)的想法吗?
我在 OpenDaylight 中找到了解决方案 forum。
Please remove
-DarchtypeCatlog=http://nexus.opendaylight.org/content/repositories/opendaylight.release/archetype-catalog.xml
and execute following command.
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release -DarchetypeVersion=1.4.0
从 this link 开始,您可以使用以下命令:
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype \
-DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/<Snapshot-Type>/ \
-DarchetypeCatalog=remote -DarchetypeVersion=<Archetype-Version>
同时替换 Snapshot-Type
和 Archetype-Version
如下:
使用this search on ODL's Nexus repository:
- 对于
Oxygen dev snapshot
使用Snapshot-Type=opendaylight.snapshot
和Archetype-Version=1.5.0-SNAPSHOT
- 对于
Nitrogen SR1 snapshot
使用Snapshot-Type=opendaylight.snapshot
和Archetype-Version=1.4.1-SNAPSHOT
- 对于
Nitrogen release
使用Snapshot-Type=opendaylight.release
和Archetype-Version=1.4.0
- 对于
Carbon
使用Snapshot-Type=opendaylight.release
和Archetype-Version=1.3.0-Carbon
- 对于
Boron SR0
使用Snapshot-Type=opendaylight.release
和Archetype-Version=1.2.0-Boron
- 对于
Boron SR1
使用Snapshot-Type=opendaylight.release
和Archetype-Version=1.2.1-Boron-SR1
- 对于
Boron SR2
使用Snapshot-Type=opendaylight.release
和Archetype-Version=1.2.2-Boron-SR2
- 对于
Boron snapshot
使用Snapshot-Type=opendaylight.snapshot
和Archetype-Version=1.2.2-SNAPSHOT
您还可以看到