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

问题描述:打包项目过程时,打包test文件报错

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project jasypt: There are test failures.

解决办法:

方案(一)

打包时点亮闪电标,就会自动过滤掉test文件
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test)_第1张图片

方案(二)

pom文件加入下面这个插件,也会自动过滤test文件

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

方案(三)

直接把test文件全删了,再打包

你可能感兴趣的:(maven,java,数据库)