在当前项目和插件组

时间:2017-02-16 17:03:51

标签: java eclipse oracle maven

我正在尝试使用Oracle maven依赖项生成一个新的Java项目。

我做了以下命令

mvn archetype:generate
-DarchetypeGroupId=com.oracle.weblogic.archetype
-DarchetypeArtifactId=basicWebapp
-DarchetypeVersion=12.1.3-0-0
-DarchetypeRepository=https://maven.oracle.com

并收到以下错误:

Downloading: https://maven.oracle.com/org/apache/maven/plugins/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading: https://maven.oracle.com/org/codehaus/mojo/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 9.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 14.8 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.036 s
[INFO] Finished at: 2017-02-16T19:20:10+03:00
[INFO] Final Memory: 10M/151M
[INFO] ------------------------------------------------------------------------
[ERROR] 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 (C:\maven2\repo), 
[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/NoPluginFoundForPrefixException

注意:我有oracle文档中指定的POM和设置文件设置并加密了我的密码,并将其放在安全设置文件中,我的防火墙也关闭了。

有人可以帮我确定此错误的来源。

0 个答案:

没有答案