首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven -无法使用maven模板创建项目

Maven -无法使用maven模板创建项目
EN

Stack Overflow用户
提问于 2014-02-25 16:27:49
回答 1查看 3.9K关注 0票数 1

我试图使用命令propmt中的maven模板创建maven项目。但是看起来好像下载了jar,而G占有失败了。Maven版本为3.2.1。请告诉我为什么会发生这种事?

C:\workspace>mvn原型:生成-DgroupId=com.mkyong -DartifactId=CounterWebApp -DarchetypeArtifactId=maven-原型-webapp -Dinte ractiveMode=false [INFO] Scanning for projects... Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin :2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.4: Plugin org.apache.maven.plugins:maven-install-pl ugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2. 4 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plug in:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-02-25 16:38:16

你在和代理合作吗?如果是这样,您可以在%MAVEN_HOME%/conf/setings.xml中检查代理配置。

代码语言:javascript
复制
 <proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username></username>
  <password></password>
  <host></host>
  <port></port>
  <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>

您似乎无法连接到maven存储库。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22020231

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档