一、该问题的重现步骤是什么?
1. 按 https://sns.bladex.cn/q-762.html 和开发手册的指导,在setting配置了令牌,使用mave 3.9.2 和maven 3.6.2分别执行打包命令均失败
2. 可以正常编译运行
3.
二、你期待的结果是什么?实际看到的又是什么?
打包成功
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
bladex boot 3.4.0, windows 10
四、请提供详细的错误堆栈信息,这很重要。
PS D:\MyGit\drug-verification\drug-verification-upper-bladex> mvn clean package -U -Pdev -DskipTests
[INFO] Scanning for projects...
Downloading from aliyun-repos: https://maven.aliyun.com/repository/public/org/springblade/platform/blade-bom/3.3.1.RELEASE/blade-bom-3.3.1.RELEASE.pom
Downloading from bladex: https://center.javablade.com/api/packages/blade/maven/org/springblade/platform/blade-bom/3.3.1.RELEASE/blade-bom-3.3.1.RELEASE.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/springblade/platform/blade-bom/3.3.1.RELEASE/blade-bom-3.3.1.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springblade.platform:blade-bom:pom:3.3.1.RELEASE from/to bladex (https://center.javablade.com/api/packages/blade/maven): Authentication failed for https://center
.javablade.com/api/packages/blade/maven/org/springblade/platform/blade-bom/3.3.1.RELEASE/blade-bom-3.3.1.RELEASE.pom 401 Unauthorized @ line 31, column 25
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-boot:jar is missing. @ line 43, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-http:jar is missing. @ line 53, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-api-crypto:jar is missing. @ line 57, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-datascope:jar is missing. @ line 61, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-tenant:jar is missing. @ line 65, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-sharding:jar is missing. @ line 69, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-develop:jar is missing. @ line 73, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-swagger:jar is missing. @ line 77, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-excel:jar is missing. @ line 81, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-social:jar is missing. @ line 85, column 21
[ERROR] 'dependencies.dependency.version' for com.github.xiaoymin:knife4j-openapi2-ui:jar is missing. @ line 89, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-auto:jar is missing. @ line 93, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-test:jar is missing. @ line 98, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-report:jar is missing. @ line 104, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-flowable:jar is missing. @ line 109, column 21
[ERROR] 'dependencies.dependency.version' for com.github.whvcse:easy-captcha:jar is missing. @ line 114, column 21
[ERROR] 'dependencies.dependency.version' for com.baomidou:mybatis-plus-generator:jar is missing. @ line 119, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-oss:jar is missing. @ line 124, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-sms:jar is missing. @ line 129, column 21
[ERROR] 'dependencies.dependency.version' for com.amazonaws:aws-java-sdk-s3:jar is missing. @ line 134, column 21
[ERROR] 'dependencies.dependency.version' for io.minio:minio:jar is missing. @ line 139, column 21
[ERROR] 'dependencies.dependency.version' for com.aliyun.oss:aliyun-sdk-oss:jar is missing. @ line 144, column 21
[ERROR] 'dependencies.dependency.version' for com.aliyun:aliyun-java-sdk-core:jar is missing. @ line 149, column 21
[ERROR] 'dependencies.dependency.version' for com.huaweicloud:esdk-obs-java:jar is missing. @ line 154, column 21
[ERROR] 'dependencies.dependency.version' for com.qcloud:cos_api:jar is missing. @ line 159, column 21
[ERROR] 'dependencies.dependency.version' for com.github.qcloudsms:qcloudsms:jar is missing. @ line 164, column 21
[ERROR] 'dependencies.dependency.version' for com.qiniu:qiniu-java-sdk:jar is missing. @ line 169, column 21
[ERROR] 'dependencies.dependency.version' for com.yunpian.sdk:yunpian-java-sdk:jar is missing. @ line 174, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-liteflow:jar is missing. @ line 179, column 21
[ERROR] 'dependencies.dependency.version' for org.projectlombok:lombok:jar is missing. @ line 209, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.springblade:BladeX-Boot:3.3.1.RELEASE (D:\MyGit\drug-verification\drug-verification-upper-bladex\pom.xml) has 31 errors
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springblade.platform:blade-bom:pom:3.3.1.RELEASE from/to bladex (https://center.javablade.com/api/packages/blade/maven): Authentication failed for https://ce
nter.javablade.com/api/packages/blade/maven/org/springblade/platform/blade-bom/3.3.1.RELEASE/blade-bom-3.3.1.RELEASE.pom 401 Unauthorized @ line 31, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-boot:jar is missing. @ line 43, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-http:jar is missing. @ line 53, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-api-crypto:jar is missing. @ line 57, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-datascope:jar is missing. @ line 61, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-tenant:jar is missing. @ line 65, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-sharding:jar is missing. @ line 69, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-develop:jar is missing. @ line 73, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-swagger:jar is missing. @ line 77, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-excel:jar is missing. @ line 81, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-social:jar is missing. @ line 85, column 21
[ERROR] 'dependencies.dependency.version' for com.github.xiaoymin:knife4j-openapi2-ui:jar is missing. @ line 89, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-auto:jar is missing. @ line 93, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-core-test:jar is missing. @ line 98, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-report:jar is missing. @ line 104, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-flowable:jar is missing. @ line 109, column 21
[ERROR] 'dependencies.dependency.version' for com.github.whvcse:easy-captcha:jar is missing. @ line 114, column 21
[ERROR] 'dependencies.dependency.version' for com.baomidou:mybatis-plus-generator:jar is missing. @ line 119, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-oss:jar is missing. @ line 124, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-sms:jar is missing. @ line 129, column 21
[ERROR] 'dependencies.dependency.version' for com.amazonaws:aws-java-sdk-s3:jar is missing. @ line 134, column 21
[ERROR] 'dependencies.dependency.version' for io.minio:minio:jar is missing. @ line 139, column 21
[ERROR] 'dependencies.dependency.version' for com.aliyun.oss:aliyun-sdk-oss:jar is missing. @ line 144, column 21
[ERROR] 'dependencies.dependency.version' for com.aliyun:aliyun-java-sdk-core:jar is missing. @ line 149, column 21
[ERROR] 'dependencies.dependency.version' for com.huaweicloud:esdk-obs-java:jar is missing. @ line 154, column 21
[ERROR] 'dependencies.dependency.version' for com.qcloud:cos_api:jar is missing. @ line 159, column 21
[ERROR] 'dependencies.dependency.version' for com.github.qcloudsms:qcloudsms:jar is missing. @ line 164, column 21
[ERROR] 'dependencies.dependency.version' for com.qiniu:qiniu-java-sdk:jar is missing. @ line 169, column 21
[ERROR] 'dependencies.dependency.version' for com.yunpian.sdk:yunpian-java-sdk:jar is missing. @ line 174, column 21
[ERROR] 'dependencies.dependency.version' for org.springblade:blade-starter-liteflow:jar is missing. @ line 179, column 21
[ERROR] 'dependencies.dependency.version' for org.projectlombok:lombok:jar is missing. @ line 209, column 21
[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
PS D:\MyGit\drug-verification\drug-verification-upper-bladex>
五、若有更多详细信息,请在下面提供。
正常运行是可以的,就是无法打包。
POM:
xml versionencodingxmlnsxmlns::schemaLocation4.0.0org.springbladeBladeX-Bootjar3.3.1.RELEASEblade-api3.3.1.RELEASE1.83.8.1UTF-8UTF-8192.168.0.188adminadmin12345blade0.42.0org.springblade.platformblade-bom${bladex.project.version}pomimportorg.springbladeblade-core-bootorg.springbladeblade-core-cloudorg.springbladeblade-starter-httporg.springbladeblade-starter-api-cryptoorg.springbladeblade-starter-datascopeorg.springbladeblade-starter-tenantorg.springbladeblade-starter-shardingorg.springbladeblade-starter-developorg.springbladeblade-starter-swaggerorg.springbladeblade-starter-excelorg.springbladeblade-starter-socialcom.github.xiaoyminknife4j-openapi2-uiorg.springbladeblade-core-autoprovidedorg.springbladeblade-core-testtestorg.springbladeblade-starter-reportorg.springbladeblade-starter-flowablecom.github.whvcseeasy-captchacom.baomidoumybatis-plus-generatororg.springbladeblade-starter-ossorg.springbladeblade-starter-smscom.amazonawsaws-java-sdk-s3io.miniominiocom.aliyun.ossaliyun-sdk-osscom.aliyunaliyun-java-sdk-corecom.huaweicloudesdk-obs-javacom.qcloudcos_apicom.github.qcloudsmsqcloudsmscom.qiniuqiniu-java-sdkcom.yunpian.sdkyunpian-java-sdkorg.springbladeblade-starter-litefloworg.projectlomboklombokprovided${bladex.project.id}src/main/resourcessrc/main/java**/*.xmlorg.springframework.bootspring-boot-maven-plugin2.7.11${project.build.finalName}repackageio.fabric8docker-maven-plugin${docker.fabric.version}${docker.username}${docker.password}${docker.registry.url}${docker.namespace}/${project.build.finalName}:${project.version}${project.name}${project.basedir}/Dockerfile${basedir}/target/${project.build.finalName}.jarorg.springframework.bootspring-boot-maven-pluginmaven-compiler-plugin${maven.plugin.version}${java.version}${java.version}UTF-8-parametersaliyun-reposAliyun Public Repositoryhttps://maven.aliyun.com/repository/publicfalsebladexBladeX Release Repositoryhttps://center.javablade.com/api/packages/blade/mavenaliyun-pluginAliyun Public Pluginhttps://maven.aliyun.com/repository/publicfalsebladexBladeX Release Repositoryhttps://center.javablade.com/api/packages/blade/mavenbladexBladeX Snapshot Repositoryhttps://center.javablade.com/api/packages/blade/maven
setting.xml 以下xml中token做了脱敏,是完全复制的https://sns.bladex.cn/q-762.html 中的xml,只是改了token
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
能不能提供一下操作步骤说明?对bladex-tool下载后解压到哪个文件夹有要求吗?
pom同步bladex-tool 3.4.0,也是报一样的错,未授权401
Failure to transfer com.oracle:ojdbc7:pom:12.2.0.1 from https://center.javablade.com/api/packages/blade/maven was cached in the local repository, resolution will not be reattempted until the update interval of bladex has elapsed or updates are forced. Original error: Could not transfer artifact com.oracle:ojdbc7:pom:12.2.0.1 from/to bladex (https://center.javablade.com/api/packages/blade/maven): status code: 401, reason phrase: Unauthorized (401)
pom同步bladex-tool 3.4.0,也是报一样的错,未授权401
Failure to transfer com.oracle:ojdbc7:pom:12.2.0.1 from https://center.javablade.com/api/packages/blade/maven was cached in the local repository, resolution will not be reattempted until the update interval of bladex has elapsed or updates are forced. Original error: Could not transfer artifact com.oracle:ojdbc7:pom:12.2.0.1 from/to bladex (https://center.javablade.com/api/packages/blade/maven): status code: 401, reason phrase: Unauthorized (401)
扫一扫访问 Blade技术社区 移动端