maven导出jar包时出现错误No plugin found for prefix 'dependency' in the current project and in the plugin……
来源:互联网 发布:数据可视化工程师薪酬 编辑:程序博客网 时间:2024/06/07 22:54
在项目目录下输入mvn dependency:copy-dependencies
报错日志如下:
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.3
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.8: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.3.2/maven-release-plugin-2.3.2.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-release-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-release-plugin:jar:2.3.2
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Software caused connection abort: recv failed
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Software caused connection abort: recv failed
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Software caused connection abort: recv failed
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Software caused connection abort: recv failed
在eclipse中报错相同。
经过查找,发现原因是联通的网无法访问maven中心仓库。
1.尝试使用全局代理,依然访问失败。
2.尝试在setting.xml文件中配置代理,依然失败。
无奈,用手机给电脑开了热点(移动4G),成功了。
一共也就需要下载300kb左右的数据。。
- maven导出jar包时出现错误No plugin found for prefix 'dependency' in the current project and in the plugin……
- 安装maven所见错误No plugin found for prefix 'help' in the current project and in the plugin
- no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- No plugin found for prefix 'war' in the current project and in the plugin groups
- No plugin found for prefix ‘war’ in the current project and in the plugin groups
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- No plugin found for prefix 'war' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- No plugin found for prefix 'jetty' in the current project
- PHP面向对象有关问题集合
- xlistview相关操作
- extern “C” #ifndef #ifdef #undef #pragma once
- web.xml 配置-listener
- JDK发展史
- maven导出jar包时出现错误No plugin found for prefix 'dependency' in the current project and in the plugin……
- 屏蔽Xcode8 日志输出
- php openssl加密解密方法
- 二叉查找树(BST)
- jedis与spring整合
- 从上往下打印二叉树
- 六边形人物移动跳跃击打Combo下降逻辑
- Keras 保存与加载网络模型
- 认识EXT2文件系统