Maven packaging error resolution about "There are test failures"

Reason: I don't know what code was added in the test to cause an error.
The solution: Make it skip the test
idea at compile time :

In the idea interface, select the Maven interface on the right, and there is a row of buttons in the interface. Select the button in the red box as shown below (Toggle 'Skip Tests' Mode), and the button is selected at this time;

Then pack it, success

 

myeclipse :
Select the Maven build of your project in debug Configurations, and select Skip Tests on the right

 

Guess you like

Origin blog.csdn.net/weixin_44487760/article/details/128392342