导入maven项目之后修改pom.xml里面的版本号报错:Failure to transfer org.apache.maven.plugins:maven-surefire-plugin

7 篇文章 0 订阅
4 篇文章 0 订阅

Springboot项目启动以后,每次修改代码只要一保存,Maven Project Builder都会Building半天,不知是否有加速的方法,欢迎留言指导。继上一篇文章反编译Springboot项目之后,这两天终于又可以用源码来运行项目了。以下几行零碎地记录了一些工作。
20200424 08:49 debug Vehicle.java。
20200424 09:03 debug VehicleVo.java。
20200424 09:42 debug SysUser.java。
……
20200424 10:13 debug XXXSequenceController.java。
20200424 10:16 debug ImportantTargetController.java。
20200424 10:20 debug ServiceController.java。
20200424 10:27 debug VehicleService.java。
……
20200424 11:05 debug SysUserMapper.java。
20200424 11:07 debug VehicleMapper.java。
……
20200426 11:08 终于排除掉了所有显式错误,又可以登入系统了。
20200426 15:42 修复/src/main/resources/static/common/json/navs.json中目录的字符乱码。
……
20200427 09:03 没联网之前将pom.xml里版本号修改为0.1.2(不知这个错误是否因为没联网引起)。 

到此为止pom.xml文件里报出了如下错误:

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.22.2 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update 
 interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.22.2 from/to central (https://repo.maven.apache.org/maven2): 
 repo.maven.apache.org

按照niaonao在文章https://blog.csdn.net/niaonao/article/details/80047136给出的第一种方法直接去强制Update Maven Project后问题依然存在。

然后按照他的文中给出的另一种方法,删除\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin目录下的所有文件,然后会自动重新下载对应jar包。完成之后pom.xml中的报错就没有了。不过项目还是启动不了。里面又冒出了其它的问题,留待下一步解决。

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
	If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
	If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

AlphaFinance

您的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值