Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on

报错信息:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project qc-offline-report: There are test failures.

在对maven执行完clean和install后,控制台出现上述错误:

解决办法:在原来的maven依赖(pom.xml)插件中新加一个maven-surefire-plugin依赖;添加后如下所示

    
        qc-offline-report
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            

            
                org.apache.maven.plugins
                maven-surefire-plugin
                2.22.1
                
                    true
                
            
        
    

你可能感兴趣的:(idea,Educoder,maven,maven,java,前端,数据分析)