首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法解析插件org.apache.maven.plugins:maven-install-plugin:2.4或其依赖项之一

无法解析插件org.apache.maven.plugins:maven-install-plugin:2.4或其依赖项之一
EN

Stack Overflow用户
提问于 2014-12-17 18:08:53
回答 2查看 11.6K关注 0票数 3

我收到了这个错误消息和另一个错误消息:无法读取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还没有构建我迫切需要的项目。

有什么想法吗?

EN

回答 2

Stack Overflow用户

发布于 2017-04-19 19:42:50

这似乎是代理问题,请通过抓取局域网设置和代理信息在您的setting.xml中执行以下操作。

代码语言:javascript
复制
<proxies>
      <proxy>
        <id>proxy</id>
        <active>true</active>
        <protocol>http</protocol>
        <host>HOSTNAME</host>
        <port>PORT</port>
      </proxy>
  </proxies>

这是一个常见的问题,请参阅下面的链接。

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

Maven: Failed to retrieve plugin descriptor error

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved

票数 2
EN

Stack Overflow用户

发布于 2021-01-12 17:34:41

错误可能类似于

(groupId):(artifactID):(version)

  • 无法解析org.apache.maven.plugins:maven-clean-plugin:2.4.1
  • error

在依赖项部分pom.xml中,将

代码语言:javascript
复制
<dependency>
    <groupId>(groupId)</groupId>    
    <artifactId>(artifactID) </artifactId>  
    <version>(version)</version>
    <type>maven-plugin</type> // here type will be whatever the groupId is 
</dependency>    

结果将是上述错误的依赖项

代码语言:javascript
复制
<dependency>
    <groupId>org.apache.maven.plugins</groupId>    
    <artifactId>maven-install-plugin</artifactId>  
    <version>2.4</version>
    <type>maven-plugin</type>
</dependency>

重新加载build,这应该会下载这些未解决错误的依赖项。

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

https://stackoverflow.com/questions/27523039

复制
相关文章

相似问题

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