mybatis 3.5.0源码编译遇到的问题

这里写自定义目录标题

问题描述

[INFO] --- license-maven-plugin:3.0:format (default) @ mybatis ---
[INFO] Updating license headers...
[WARNING] failure occured while calling class com.mycila.maven.plugin.license.git.CopyrightRangeProvider
java.lang.RuntimeException: Could not compute the year of the last git commit for file D:\mybatis-3-mybatis-3.5.0\src\main\java\org\apache\ibatis\annotations\ConstructorArgs.java
    at com.mycila.maven.plugin.license.git.CopyrightRangeProvider.ge[tWARNING] failure occured while calling class com.mycila.maven.plugin.license.git.CopyrightRangeProvider
java.lang.RuntimeException: Could not compute the year of the last git commit for file D:\mybatis-3-mybatis-3.5.0\src\main\java\org\apache\ibati[sINFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[WARNING] failure occured while calling class com.mycila.maven.plugin.license.git.CopyrightRangeProvider
[java.lang.RuntimeException: Could not compute the year of the last git commit for file D:\mybatis-3-mybatis-3.5.0\src\main\java\org\apache\ibatis\annotations\CacheNamespace.java
    at com.mycila.maven.plugin.license.git.CopyrightRangeProvider.get[AERROR] Internal error: java.lang.NumberFormatException: For input string: "31m" -> [Help 1]
[org.apaWARNche.maven.InING] ternalErrorfailuExceptionre:  ocInternal error: java.lang.NumberFormatException: For input string: "31m"
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120)


解决方式


由于是maven 插件在报错 我第一时间怀疑是 maven 版本过低造成成的,我的maven 是3.5.3 , 换成了 3.6.3 问题就解决了,编译成功了。

在这里插入图片描述

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值