mvn clean package 执行失败

Blade 已结 1 2385
jues
jues 剑圣 2020-07-09 14:20

一、该问题的重现步骤是什么?

1. 在项目根目录下执行 mvn clean package 失败

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

可以正常执行 mvn clean package


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

blade-x

2.5.1

macos


四、请提供详细的错误堆栈信息,这很重要。

image.png


五、若有更多详细信息,请在下面提供。

➜  backend git:(dev) ✗ mvn clean package

[INFO] Scanning for projects...

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Non-resolvable import POM: Failure to find org.springblade.platform:blade-bom:pom:2.5.1.RELEASE in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced @ line 46, column 25

 @

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR]   The project org.springblade:BladeX:2.5.1.RELEASE (/opt/project/zkml/backend/pom.xml) has 1 error

[ERROR]     Non-resolvable import POM: Failure to find org.springblade.platform:blade-bom:pom:2.5.1.RELEASE in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced @ line 46, column 25 -> [Help 2]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException



本地maven的setting配置文件


image.png

1条回答
  •  smallchill
    smallchill (最佳回答者)
    2020-07-09 18:23

    本地没有获取到blade-bom,也许是maven的配置问题导致没有获取到私服的值。

    image.png

    跟着这个帖子步骤配置下看看 : https://sns.bladex.cn/q-762.html,如果还不行,那就下载BladeX-Tool本地执行install然后再对BladeX执行mvn clean package

    0 讨论(1)
提交回复