mvn archetype:生成构建错误

时间:2013-04-21 14:08:07

标签: maven archetypes

我第一次使用maven。在我的7台机器中,我下载了maven安装文件夹并设置了M2_HOME变量和路径变量以使用maven,如设置指南中所述。

现在,当我尝试通过命令提示符运行maven时,如下所示:

C:\Users\hardik>mvn archetype:generate 

我收到以下构建错误:

C:\Users\hardik>mvn archetype:generate

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri
eved from repository: central due to an error: Error transferring file: repo1.ma
ven.org
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi
st or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Sun Apr 21 19:29:13 IST 2013
[INFO] Final Memory: 1M/7M
[INFO] ------------------------------------------------------------------------

0 个答案:

没有答案