maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

时间:2022-09-17 11:12:03

事故现场:

maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

解决办法:

一是命令行,

mvn clean package -Dmaven.test.skip=true

去项目所在文件夹与pom文件同级执行命令

maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

二是写入pom文件,注意父子级节点结构

.....
<build>
  <plugins>
    <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin> </plugins>
</build>
.....

maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test的更多相关文章

  1. maven install时报错 Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-surefire-plugin&colon;2&period;12&period;4&colon;test &lpar;default-test&rpar;

    今天在一个maven项目上执行maven install命令的时候一直报错,错误信息如下: [INFO] ----------------------------------------------- ...

  2. maven install时报错Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-compiler-plugin&colon;2&period;3&period;2&colon;compile

    首先检查父项目,子项目的jdk版本是否一致,编码格式是否一致我的问题就错在了编码格式上,父项目用的是UTF-8,子项目新建的,默认GBK这时,使用maven install命令出错 提示:[INFO] ...

  3. maven build时报错Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-surefire-plugin&colon;2&period;12&period;4&colon;test

    [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ ...

  4. maven install 报错Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-compiler-plugin&colon;3&period;1&colon;compile &lpar;default-compile&rpar; on project&ast;&ast;&ast;&ast;&ast;

    [ERROR]Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-co ...

  5. 启动Maven项目时报错Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-clean-plugin&colon;2&period;5&colon;clean &lpar;default-clean&rpar; on project &ast;&ast;-web&colon; Failed to clean project&colon; Failed to delete E&colon;&bsol;&ast;&ast;&bsol;target&bsol;tomcat&bsol;logs&bsol;access&lowbar;lo

    这类错误 出现这种错误,通常是由于您已启动了另一个tomcat 进程或者运行的javaw.exe进程,导致报错. 解决方法: 1. 鼠标点击 X 进行关闭运行失败的 Console页,(如果运行多次, ...

  6. maven install 报错 Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-surefire-plugin&colon;2&period;12&period;4&colon;test

    pom文件引入以下依赖 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId&gt ...

  7. mvn install 报错Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-compiler-plugin&colon;2&period;3&period;2 错误&colon; 找不到符号

    报错信息 在Eclipse中执行mvn install时,console端显示如下报错信息: [ERROR] Failed to execute goal org.apache.maven.plugi ...

  8. 在IDEA上 使用maven进行打包时报错&colon; Failed to execute goal org&period;apache&period;maven&period;plugins&colon;maven-javadoc-plugin&colon;2&period;10&period;2&colon;jar

    报错内容: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.2:jar (attach-javado ...

  9. 解决maven项目 maven install失败 错误 Failed to execute goal org&period;apache&period;maven&period;plugins

    1.Maven构建失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3.4 :compile ( ...

随机推荐

  1. Java图片处理 Thumbnails框架

    一.设置图片的缩放比例或者图片的质量比   第一步:导入maven的jar包 <dependency>     <groupId>net.coobird</groupId ...

  2. 怎么找到苹果App Store的应用程序下载链接地址

    http://jingyan.baidu.com/article/6dad5075f6fa79a123e36e85.html 怎么找到苹果App Store的应用程序下载链接地址 每个上传到苹果app ...

  3. GBDT和RF的区别

    去XX公司实习的时候,被问过,傻逼的我当时貌似都答错了,原谅全靠自学的我,了解甚少 RF随着树的增加不会过拟合 GBDT随着树的增加会过拟合 RF还会对特征进行random,例如特征的个数m=sqrt ...

  4. cf558c&lpar;bfs&rpar;

    C. Amr and Chemistry time limit per test 1 second memory limit per test 256 megabytes input standard ...

  5. BZOJ2783&colon; &lbrack;JLOI2012&rsqb;树 dfs&plus;set

    2783: [JLOI2012]树 Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 588  Solved: 347 Description 数列 提交文 ...

  6. SICP阅读笔记&lpar;一&rpar;

    2015-08-25   008   Foreword    QUOTE: I think that it's extraordinarily important that we in compute ...

  7. 从零开始搭建ELK&plus;GPE监控预警系统

    前言 本文可能不会详细记录每一步实现的过程,但一定程度上可以引领小伙伴走向更开阔的视野,串联每个环节,呈现予你不一样的效果. 业务规模 8个平台 100+台服务器 10+个集群分组 微服务600+ 用 ...

  8. 使用 pandas 导出数据

    import pandas as pd # In[58]: df = pd.DataFrame(houselist) # In[59]: df # In[61]: df.to_csv('lianjia ...

  9. &lbrack;leetcode&rsqb;17&period; Letter Combinations of a Phone Number手机键盘的字母组合

    Given a string containing digits from 2-9 inclusive, return all possible letter combinations that th ...

  10. c中计时函数 clock()

    #include<time.h> int main() { // ... .. // .... printf("Time used = %.2lf\n",(double ...