简体   繁体   English

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

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

I am getting this error message and a further one here: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4:我在这里收到此错误消息和另一条错误消息:无法读取 org.apache.maven.plugins:maven-install-plugin:jar:2.4 的工件描述符:

Even though when i go the .m2 repository with this path C:\\Users\\A591024.m2\\repository\\org\\apache\\maven\\plugins\\maven-resources-plugin\\2.4即使当我使用此路径 C:\\Users\\A591024.m2\\repository\\org\\apache\\maven\\plugins\\maven-resources-plugin\\2.4 进入 .m2 存储库时

the maven-resources-plugin-2.4.jar file is there AND maven-resources-plugin-2.4.pom is also there. maven-resources-plugin-2.4.jar 文件在那里并且 maven-resources-plugin-2.4.pom 也在那里。 i have tried to delete the .m2 repository with no luck.我试图删除 .m2 存储库但没有运气。 so far maven will not build my project that i desperately need it to.到目前为止,maven 不会构建我迫切需要的项目。

any ideas?有任何想法吗?

it seems proxy issue please aad following in your setting.xml by grabbing LAN setting and proxy information.似乎是代理问题,请通过获取 LAN 设置和代理信息在您的 setting.xml 中进行跟踪。

<proxies>
      <proxy>
        <id>proxy</id>
        <active>true</active>
        <protocol>http</protocol>
        <host>HOSTNAME</host>
        <port>PORT</port>
      </proxy>
  </proxies>

This is a frequent issue, please see the below link as well.这是一个常见的问题,请参见下面的链接。

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved 插件 org.apache.maven.plugins:maven-clean-plugin:2.5 或其依赖项之一无法解析

Maven: Failed to retrieve plugin descriptor error Maven:无法检索插件描述符错误

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved 插件 org.apache.maven.plugins:maven-install-plugin:2.4 或其依赖项之一无法解析

Errors might be something like错误可能类似于

  • Could not resolve org.apache.maven.plugins:maven-clean-plugin:2.4.1无法解析org.apache.maven.plugins:maven-clean-plugin:2.4.1
  • error : (groupId):(artifactID):(version)错误 : (groupId):(artifactID):(version)

In dependencies section pom.xml , put在依赖部分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>    

Result will be then this dependency for above error结果将是上述错误的依赖项

<dependency>
    <groupId>org.apache.maven.plugins</groupId>    
    <artifactId>maven-install-plugin</artifactId>  
    <version>2.4</version>
    <type>maven-plugin</type>
</dependency>

Reload build and this should download the dependencies for those unresolved errors.重新加载构建,这应该下载那些未解决的错误的依赖项。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Maven:无法检索pluginorg.apache.maven.plugins:maven-install-plugin:2.4或无法解决其依赖项之一 - Maven: Failed to retrieve pluginorg.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved 插件 org.apache.maven.plugins:maven-resources-plugin:2.6 或其依赖项之一无法解析 - Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved 插件 org.apache.maven.plugins:maven-compiler-plugin 或其依赖项之一无法解析 - Plugin org.apache.maven.plugins:maven-compiler-plugin or one of its dependencies could not be resolved Maven:插件 org.apache.maven.plugins:maven-clean-plugin:2.5 或其依赖项之一无法解析 - Maven : Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved 无法计算构建计划:插件 org.apache.maven.plugins:maven-resources-plugin:2.6 或其依赖项之一无法解析 - Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved 无法计算构建计划:插件 org.apache.maven.plugins:maven-resources-plugin:2.5 或其依赖项之一无法解析 - Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved 无法读取工件 org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.4:runtime 的生命周期映射元数据 - Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.4:runtime 获取org.apache.maven.plugins:maven-jar-plugin:2.3.2或其依赖项之一无法解析错误 - getting org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved error Maven构建失败并显示错误消息Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4或其依赖项之一无法解析 - Maven build fails with error message Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved CoreException:无法计算构建计划:插件 org.apache.maven.plugins:maven-compiler-plugin:2.5.1 或其依赖项之一 - CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM