编译seata源码遇到的Non-resolvable import POM

  • idea导入seata后,发现有一个模块seata-serializer-protobuf,有些包一直下不下来,编译它一直报错:
"C:\Program Files\Java\jdk1.8.0_172\bin\java.exe" -Dmaven.multiModuleProjectDirectory=E:\workspace\seata -Dmaven.home=D:\apache-maven-3.5.3 -Dclassworlds.conf=D:\apache-maven-3.5.3\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.1\lib\idea_rt.jar=50746:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.1\bin" -Dfile.encoding=UTF-8 -classpath D:\apache-maven-3.5.3\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version2020.1.1 -s D:\apache-maven-3.5.3\conf\settings.xml -Dmaven.repo.local=D:\maven-repository compile
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact io.seata:seata-bom:pom:1.3.0-SNAPSHOT @ io.seata:seata-parent:${revision}, E:\workspace\seata\pom.xml, line 170, column 25
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project io.seata:seata-serializer:1.3.0-SNAPSHOT (E:\workspace\seata\serializer\pom.xml) has 1 error
[ERROR]     Non-resolvable import POM: Could not find artifact io.seata:seata-bom:pom:1.3.0-SNAPSHOT @ io.seata:seata-parent:${revision}, E:\workspace\seata\pom.xml, line 170, column 25 -> [Help 2]
[ERROR] 
  • 父工程的pom文件里面有一行在报错,打开pom.文件,发现是依赖的一个pom工程,这个pom工程又能直接编译通过
  • 直接在工程目录下面执行:
mvn clean install
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven) on project seata-parent:
 Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
  • 看不懂是啥意思,只好根据提示加上-e -X打印出更完整的报错信息:
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 3.5.3 is not in the allowed range [3.6.0,).
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Seata Parent POM 1.3.0-SNAPSHOT 1.3.0-SNAPSHOT ..... FAILURE [  1.746 s]
  • 原来时候maven版本太低导致的。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值