首页 > 其他分享 >执行Maven的test命令报错

执行Maven的test命令报错

时间:2022-11-06 11:11:25浏览次数:116  
标签:maven Maven apache 报错 plugins test org

参考网址:https://blog.csdn.net/weixin_46688566/article/details/126470742

解决方案

在pom.xml文件中加入以下依赖:

<plugin>
    <groupId>org.eclipse.m2e</groupId>
    <artifactId>lifecycle-mapping</artifactId>
    <version>1.0.0</version>
    <configuration>
        <lifecycleMappingMetadata>
            <pluginExecutions>
                <pluginExecution>
                    <pluginExecutionFilter>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <versionRange>[2.0,)</versionRange>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                    </pluginExecutionFilter>
                    <action>
                        <ignore />
                    </action>
                </pluginExecution>
            </pluginExecutions>
        </lifecycleMappingMetadata>
    </configuration>
</plugin>
<!--加入这个插件估计就不会报以上错误了-->
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <skipTests>true</skipTests>
    </configuration>
</plugin>

 

标签:maven,Maven,apache,报错,plugins,test,org
From: https://www.cnblogs.com/Swl-Maky/p/16862210.html

相关文章

  • AtCoder Beginner Contest 276
    今天来讲解一下AtCoderBeginnerContest276 C和D传送地址:https://atcoder.jp/contests/abc276一. C-PreviousPermutation题目大意:给你一个有数字1~n组成的序列......
  • Test
    NOIP55ProblemA:军训(training)\[【问题描述】为了让营员收获更大,本次秋令营增加了军训项目。军训的场地位于一片无限大的二维的台阶。定义从(x1,y1)到(x2......
  • AtCoder Beginner Contest 276
    咕咕咕咕。E-RoundTrip如果存在某个点双满足这个点双包含起点且点双大小大于\(4\)则有解。F-DoubleChance考虑不断在之前的基础上在末尾添加一个数,每次更新期......
  • testmd
    goodthingsfuninitData(){intent.run{created_in=intent.getStringExtra("from")?:""pagerPosition=intent.getIntExtra(......
  • AtCoder Beginner Contest 276 A~G 题解
    今天凌晨CFD题差一句判断AC,晚上ABCG题把插板法和快速幂搞混差点AC。事不过三,再这样一次我直接紫砂。太简单的题就不放翻译和代码了。(事实上这场A-E都是大水题......
  • MySQL表加字段可为null导致ArrayIndexOutOfBoundsException报错问题记录
    问题爆出企微群告警爆了,立即去看ELK报错日志,报错日志非常莫名其妙:​​java.lang.ArrayIndexOutOfBoundsException:16​​原因分析事后发现共有18257次报错日志,时间跨度19:......
  • NGINX重启发生报错 nginx: [error] open() “/run/nginx.pid“ failed
    nginx[error]open()“/usr/local/var/run/nginx.pid”failed(2:Nosuchfileordirectory)nginx:[error]open()“/run/nginx.pid”failed(2:Nosuchfileord......
  • 添加磁盘组存储ocrbk报错PROT-30、PROC-50
    问题描述:添加磁盘组存储ocrbk报错PROT-30、PROC-50,如下所示:数据库:oracle11.2.0.464位系统:centos7.964位环境:rac(双节点)+dg异常现象:[root@hisdb1bin]#pwd/u01/app/1......
  • 运行python脚本报错:selenium.common.exceptions.SessionNotCreatedException: Message
    运行python脚本报错:selenium.common.exceptions.SessionNotCreatedException:Message:sessionnotcreated        原因:ChromeDriver版本与浏览器版本不......
  • React使用Antd自定义主题报错
    安装包"customize-cra":"^1.0.0","customize-cra-less-loader":"^2.0.0","less":"^4.1.3","less-loader":"^11.1.0",修改config-overrides.jsconst{override......