Maven Package Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project Mybatis: There are test failures.

MVN compile   There is no problem. The following error is reported during MVN package:


There are two ways to package and skip tests

First, the command line:
MVN clean package – dmaven. Test. Skip = true

Second, write POM file:


Similar Posts: