[英]Maven project can not be created in Eclipse Neon using Archetype
无法使用Archetype在Eclipse Neon中创建Maven项目,我得到以下错误。 (附有截屏)
Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
为maven正确配置了代理设置。 此外,我可以使用命令行创建maven项目,没有任何问题。
我已经尝试了互联网上推荐的几乎所有解决方案。 但没有运气。 现在这个问题正在扼杀我。
我们非常感谢您在这方面的帮助。
似乎您正面临配置问题。 转到settings.xml。
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<id>proxyname</id>
<active>true</active>
<protocol>http</protocol>
<username>username</username>
<password>password</password>
<host>127.0.0.1</host>
<port>80</port>
<nonProxyHosts>any.host</nonProxyHosts>
</proxy>
</proxies>
</settings>
确保您指向默认代理并给出正确的凭据。
settings.xml的位置参考:/repositories/buildtools/apache-maven-3.2.2-developer/conf/settings.xml
如果需要进一步了解,请回复我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.