idea 项目打包出错

打印的错误日记

-------------------------------------------------------------------------------
Test set: com.guanpingshool.gpit.GpitApplicationTests
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.66 s <<< FAILURE! - in com.guanpingshool.gpit.GpitApplicationTests
contextLoads  Time elapsed: 0.01 s  <<< ERROR!
java.lang.NoSuchMethodError: org.springframework.test.context.TestContext.computeAttribute(Ljava/lang/String;Ljava/util/function/Function;)Ljava/lang/Object;

跳过test吧 

如果是maven,加上 -Dmaven.test.skip=true 跳过test的代码

出现这种情况怎么造成的,项目本身是可以正常运行的。