我正在尝试在ODl中创建hello world项目,但是得到了相同的错误。当构建hello world项目白色mvn -nsu clean install
或mvn clean install
时,它有错误。
我在link1和link2中遵循了两个不同的过程。我也将此代码用于原型
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller \
-DarchetypeArtifactId=opendaylight-startup-archetype \
-DarchetypeVersion=1.6.0-SNAPSHOT \
-DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ \
-DarchetypeCatalog=http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml
我的错误
[INFO] ODL :: org.opendaylight.hello :: hello-artifacts ... SKIPPED
[INFO] ODL :: org.opendaylight.hello :: hello-it .......... SKIPPED
[INFO] hello .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.402 s
[INFO] Finished at: 2018-04-23T13:30:56+01:00
[INFO] Final Memory: 54M/293M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven)
on project hello-api: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
如何解决这个问题?