我收到了这个错误消息和另一个错误消息:无法读取org.apache.maven.plugins:maven-install-plugin:jar:2.4:的工件描述符
即使当我使用路径C:\Users\A591024.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.4访问.m2存储库时
maven-resources-plugin-2.4.jar文件和maven-resources-plugin-2.4.pom也在那里。我曾尝试删除.m2存储库,但没有成功。到目前为止,maven还没有构建我迫切需要的项目。
有什么想法吗?
发布于 2017-04-19 19:42:50
这似乎是代理问题,请通过抓取局域网设置和代理信息在您的setting.xml中执行以下操作。
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>HOSTNAME</host>
<port>PORT</port>
</proxy>
</proxies>这是一个常见的问题,请参阅下面的链接。
发布于 2021-01-12 17:34:41
错误可能类似于
(groupId):(artifactID):(version):
org.apache.maven.plugins:maven-clean-plugin:2.4.1在依赖项部分pom.xml中,将
<dependency>
<groupId>(groupId)</groupId>
<artifactId>(artifactID) </artifactId>
<version>(version)</version>
<type>maven-plugin</type> // here type will be whatever the groupId is
</dependency> 结果将是上述错误的依赖项
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<type>maven-plugin</type>
</dependency>重新加载build,这应该会下载这些未解决错误的依赖项。
https://stackoverflow.com/questions/27523039
复制相似问题