当我尝试在eclipse中创建Maven项目时,我收到以下错误消息.许多人在settings.xml文件中发布了代理,并刷新.m2文件夹,强制它下载新的代码.这些都不适合我.我在工作,互联网选项中的代理设置处于活动状态.
错误消息:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Run Code Online (Sandbox Code Playgroud)
pom.xml中:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.blahhhhhhhhhhhhhhhhh</groupId>
<artifactId>HelloRESTEasy</artifactId>
<version>0.0.1-SNAPSHOT</version>
</project>
Run Code Online (Sandbox Code Playgroud)
settings.xml中:
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxyserver.company.com</host>
<port>8080</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
Run Code Online (Sandbox Code Playgroud) 我的eclipse安装总是使用https协议来下载存储库结构.问题是我的合作代理不会让我在这个网址上使用https.如何强制m2e使用http?
我尝试了m2e的不同外部maven装置,但没有运气.它只适用于我使用CLI的外部maven,后者使用http.