maven的pom报plugins错的解决方法.
引用
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:jar:2.7.1 from http://repo1.maven.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 artifact
org.apache.maven.plugins:maven-surefire-plugin:jar:2.7.1 from/to central (http://repo1.maven.org/maven2): No response received after 60000
resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.apache.maven.plugins:maven-surefire-plugin:jar:2.7.1 from/to central (http://repo1.maven.org/maven2): No response received after 60000
碰到一个类似以上的错误.
原因是maven的plugin并未下载到本地.
如果你查看
引用
~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1
的话,会发现里面只有一个
maven-surefire-plugin-2.7.1.pom.lastUpdated
的文件.
而并没有maven-surefire-plugin-2.7.1.jar
解决办法:
1.删除maven-surefire-plugin-2.7.1.pom.lastUpdated文件
2.右键点击project -> Maven - Update Dependencies
这里提醒一下:maven要指定本地的,然后apply之后我们就可以在本地库C:\Users\Administrator\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1有以下四个文件(下面灰色那四个)
如果点击更新后发现
~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1
下还是没有maven-surefire-plugin-2.7.1.jar
去http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/
下载
maven-surefire-plugin-2.7.1.jar maven-surefire-plugin-2.7.1.jar.sha1 maven-surefire-plugin-2.7.1.pom maven-surefire-plugin-2.7.1.pom.sha1
包再重复步骤2.
如果没有下载到,那可能是网络问题或者配置maven插件不对。
相关推荐
本文主要阐述了maven build是用来干什么的,以及对build标签中各子元素配置的作用
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
maven打包,指定入口类的jar包,具体的pom配置为: <groupId>org.apache.maven.plugins <artifactId>maven-shade-plugin <version>3.1.0 <phase>package <goal>shade implementation="org....
官方离线安装包,亲测可用
jruby-maven-plugins, 以 Maven 方式,Maven 插件用来处理 rubygems 包括对 rspec Rails Cucumber rake等的支持 Maven 插件 gem-工件有 Maven 存储库,torquebox.org 提供了来自 rubygems.org的gem ( 只有 ruby 和...
GitHub Maven Plugins Collection of Maven plugins that integrate with GitHub. These plugins are built on top of API v3 through the GitHub Java library. Released builds are available from Maven Central...
eclipse新建maven项目时,pom.xml文件第一行报错: org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration) 解决...
我们在IDEA的安装目录下找到 /plugins/maven/lib/maven2/conf 或者 /plugins/maven/lib/maven3/conf目录(如果两个都有建议都改掉),向其中的setting.xnl文件中的/标签下添加如下的仓库地址(这里以阿里云为例): ...
今天在使用IDEA创建Maven的webapp时遇见这样一个不叫问题的问题: Downloading from central: ...解决方式:在项目的pom.xml中添加如下一段代码: centra
Maven项目对象模型(POM),可以通过一小段描述信息来管理项目的构建,报告和文档的软件项目管理工具
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
pom editor 插件 把他们解压,放到plugins就可以了
Build your own custom plugins and get to know how Maven extension points are used Troubleshoot build issues with greater confidence Optimize Maven's configuration settings Write custom lifecycles and ...
java运行依赖jar包
maven本地仓库的更新 连网后window+R 输入cmd回车 输入maven 版本查看 mvn -v ... on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-help-plugin:3.1.0:sy
maven编译pentaho-big-data-plugin遇到的所有问题解决,pentaho6.0
Maven插件和目标 (Plugins and Goals) 3.5.2. Maven生命周期 (Lifecycle) 3.5.3. Maven坐标 (Coordinates) 3.5.4. Maven仓库(Repositories) 3.5.5. Maven依赖管理 (Dependency Management) 3.5.6. 站点生成和...
Pom:文件夹,jar和war文件,mavenProject:一个项目,可以放jar和war包,通过pom,一般新创建的maven Project是POM 3.4.创建一个Maven Model 最外面的项目是MavenProject,其它的全部是Maven Model 3.4.1.创建JAR 目录...
解决方法: 1、先在pom.xml文件中加入<build></build>标签 <plugins> <groupId>org.apache.maven.plugins <artifactId>maven-jar-plugin <version>2.3.1 <!--运行jar包时运行的主类,要求类...
the concept of a Project Object Model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. Documentation ------------- The most up-to-date...