我正在使用Maven 3.3.3版本和JBossDeveloperStudio9.x。我正在尝试创建一个maven模块。我犯了一个错误。
无法从任何配置的存储库解析原型org.apache.maven.archetypes:maven-archetype-quickstart:1.1。无法解析工件org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1无法将工件org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1从中央传输到中央(https://repo.maven.apache.org/maven2):repo.maven.apache.org不能将工件org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1从中央传输到中央(https://repo.maven.apache.org/maven2):repo.maven.apache.org
在命令提示符下我得到了这个。

代理详细信息如下,其中xxx可以分别被用户名、密码、主机替换。
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>xxx</username>
<password>xxx</password>
<host>xxx, 3128</host>
<port>3128</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>任何帮助都很感激。
发布于 2015-10-09 04:42:43
如果您在代理后面,请将其放入您的HOME%/.m2/setings.xml中
由于代理设置,您的工作站/服务器似乎没有连接到maven中心。
当您试图在JBoss Developer Studio之外调用maven时会发生什么?例如。
mvn archetype:create
-DgroupId=test
-DartifactId=test2
-DarchetypeArtifactId=maven-archetype-quickstarthttps://stackoverflow.com/questions/33029977
复制相似问题