打包一直报 Not authorized 是哪里配置不对吗?

Blade 未结 1 214
1502461081
1502461081 2024-06-26 15:46

image.png



D:\srm\env\jdk\bin\java.exe -Dmaven.multiModuleProjectDirectory=E:\bladex-biz\blade-gateway -Djansi.passthrough=true -Dmaven.home=D:\maven\apache-maven-3.6.0 -Dclassworlds.conf=D:\maven\apache-maven-3.6.0\bin\m2.conf "-Dmaven.ext.class.path=D:\IDEA\IntelliJ IDEA 2023.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\IDEA\IntelliJ IDEA 2023.1\lib\idea_rt.jar=55925:D:\IDEA\IntelliJ IDEA 2023.1\bin" -Dfile.encoding=UTF-8 -classpath D:\maven\apache-maven-3.6.0\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2023.1 -s D:\maven\apache-maven-3.6.0\conf\settings.xml package

[INFO] Scanning for projects...

[WARNING] Failed to build parent project for org.springblade:blade-gateway:jar:3.2.0.RELEASE

[WARNING] 

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

[WARNING] 'version' contains an expression but should be a constant. @ org.springblade:blade-gateway:${bladex.project.version}, E:\bladex-biz\blade-gateway\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-gateway >--------------------

[INFO] Building blade-gateway 3.2.0.RELEASE

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

Downloading from bladex: https://center.javablade.com/api/packages/blade/maven/org/springblade/BladeX-Biz/3.2.0.RELEASE/BladeX-Biz-3.2.0.RELEASE.pom

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

[INFO] BUILD FAILURE

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

[INFO] Total time:  1.305 s

[INFO] Finished at: 2024-06-26T15:45:28+08:00

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

[WARNING] The requested profile "dev" could not be activated because it does not exist.

[WARNING] The requested profile "test" could not be activated because it does not exist.

[WARNING] The requested profile "prod" could not be activated because it does not exist.

[ERROR] Failed to execute goal on project blade-gateway: Could not resolve dependencies for project org.springblade:blade-gateway:jar:3.2.0.RELEASE: Failed to collect dependencies at org.springblade:blade-biz-common:jar:3.2.0.RELEASE: Failed to read artifact descriptor for org.springblade:blade-biz-common:jar:3.2.0.RELEASE: Could not transfer artifact org.springblade:BladeX-Biz:pom:3.2.0.RELEASE from/to bladex (https://center.javablade.com/api/packages/blade/maven): Not authorized -> [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


1条回答
  •  zhx1994
    zhx1994 (楼主)
    2024-06-26 17:36

    配置token的令牌:https://center.javablade.com/blade/BladeX-Doc/src/branch/master/%E7%AC%AC1%E7%AB%A0%20%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B/1.3%20%E5%B7%A5%E7%A8%8B%E5%AF%BC%E5%85%A5/1.3.0%20%E9%85%8D%E7%BD%AE%E8%B5%84%E6%BA%90%E4%BB%A4%E7%89%8C.md

    0 讨论(0)
提交回复