打包blade-core-db失败

Blade 未结 2 1198
wanxq73
wanxq73 2023-09-21 11:04

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

1. idea打开BladeX-Tool目录

2. maven构建blade-core-db


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

期待成功构建

实际报错:

Could not transfer artifact com.oracle:ojdbc7:pom:12.2.0.1 from/to bladeX


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

BladeX-Tool


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

"C:\Program Files\Java\jdk1.8.0_281\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\bitbucket\blade\BladeX-Tool\blade-core-db -Djansi.passthrough=true -Dmaven.home=D:\apache-maven-3.5.4 -Dclassworlds.conf=D:\apache-maven-3.5.4\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2023.2.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2023.2.1\lib\idea_rt.jar=65056:C:\Program Files\JetBrains\IntelliJ IDEA 2023.2.1\bin" -Dfile.encoding=UTF-8 -classpath D:\apache-maven-3.5.4\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2023.2.2 -s D:\apache-maven-3.5.4\conf\settings.xml package

[WARNING] 

[WARNING] Some problems were encountered while building the effective settings

[WARNING] Unrecognised tag: 'uniqueVersion' (position: START_TAG seen ...\n\t\t\t\t... @106:20)  @ D:\apache-maven-3.5.4\conf\settings.xml, line 106, column 20

[WARNING] Unrecognised tag: 'uniqueVersion' (position: START_TAG seen ...\n\t\t\t\t... @106:20)  @ D:\apache-maven-3.5.4\conf\settings.xml, line 106, column 20

[WARNING] 

[INFO] Scanning for projects...

[WARNING] 

[WARNING] Some problems were encountered while building the effective model for org.springblade:blade-core-db:jar:3.2.0.RELEASE

[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-core-db:${project.parent.version}, D:\bitbucket\blade\BladeX-Tool\blade-core-db\pom.xml, line 14, column 14

[WARNING] 

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

[WARNING] 

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

[WARNING] 

[INFO] 

[INFO] -------------------< org.springblade:blade-core-db >--------------------

[INFO] Building blade-core-db 3.2.0.RELEASE

[INFO] --------------------------------[ jar ]---------------------------------

Downloading from nexus_release: http://maven.host:8081/repository/maven-public/com/oracle/ojdbc7/12.2.0.1/ojdbc7-12.2.0.1.pom

Downloading from bladeX: https://center.javablade.com/api/packages/blade/maven/com/oracle/ojdbc7/12.2.0.1/ojdbc7-12.2.0.1.pom

Downloading from nexus_release: http://maven.host:8081/repository/maven-public/com/yashandb/jdbc/yasdb-jdbc/21.1.0.4.8/yasdb-jdbc-21.1.0.4.8.pom

Downloading from bladeX: https://center.javablade.com/api/packages/blade/maven/com/yashandb/jdbc/yasdb-jdbc/21.1.0.4.8/yasdb-jdbc-21.1.0.4.8.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.853 s

[INFO] Finished at: 2023-09-21T10:57:53+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project blade-core-db: Could not resolve dependencies for project org.springblade:blade-core-db:jar:3.2.0.RELEASE: Failed to collect dependencies at com.oracle:ojdbc7:jar:12.2.0.1: Failed to read artifact descriptor for com.oracle:ojdbc7:jar:12.2.0.1: Could not transfer artifact com.oracle:ojdbc7:pom:12.2.0.1 from/to bladeX (https://center.javablade.com/api/packages/blade/maven): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

[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/DependencyResolutionException


Process finished with exit code 1

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

根目录下的pom.xml中配置了以下仓库(maven.host是本地私服):


iot-componentsLocal Nexus Releases Repositoryhttp://maven.host:8081/repository/iot-components/truealwaysfailfalsealwaysfailnexus_releaseLocal Nexus Releases Repositoryhttp://maven.host:8081/repository/maven-public/truealwaysfailfalsealwaysfailzoomwin-snapshotsZoomwin Snapshotshttp://maven.host:8081/repository/maven-public/defaulttruedailyfailfalsealwaysfailaliyun-reposAliyun Public Repositoryhttps://maven.aliyun.com/repository/publicfalsebladeXBladeX Release Repositoryhttps://center.javablade.com/api/packages/blade/maven


2条回答
提交回复