maven打包项目依赖下载自动在bladeX私服寻找依赖,导致依赖找不到

Blade 未结 1 1705
广东恒电
广东恒电 剑圣 2021-01-07 17:14
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] hengdian-scan-service                                              [pom]
[INFO] blade-common                                                       [jar]
[INFO] blade-gateway                                                      [jar]
[INFO] blade-service-api                                                  [pom]
[INFO] blade-scan-service-api                                             [jar]
[INFO] blade-service                                                      [pom]
[INFO] blade-scan-service                                                 [jar]
[INFO] 
[INFO] ---------------< org.springblade:hengdian-scan-service >----------------
[INFO] Building hengdian-scan-service 2.4.0.RELEASE                       [1/7]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.1.12.RELEASE:repackage (default) @ hengdian-scan-service ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ hengdian-scan-service ---
[INFO] Installing /root/hengdian-scan-service/pom.xml to /root/.m2/repository/org/springblade/hengdian-scan-service/2.4.0.RELEASE/hengdian-scan-service-2.4.0.RELEASE.pom
[INFO] 
[INFO] --------------------< org.springblade:blade-common >--------------------
[INFO] Building blade-common 2.4.0.RELEASE                                [2/7]
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.openpnp:opencv-4.4.0:jar:4.4.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for hengdian-scan-service 2.4.0.RELEASE:
[INFO] 
[INFO] hengdian-scan-service .............................. SUCCESS [  0.569 s]
[INFO] blade-common ....................................... FAILURE [  0.530 s]
[INFO] blade-gateway ...................................... SKIPPED
[INFO] blade-service-api .................................. SKIPPED
[INFO] blade-scan-service-api ............................. SKIPPED
[INFO] blade-service ...................................... SKIPPED
[INFO] blade-scan-service ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.368 s
[INFO] Finished at: 2021-01-07T17:11:15+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project blade-common: Could not resolve dependencies for project org.springblade:blade-common:jar:2.4.0.RELEASE: Failure to find org.openpnp:opencv-4.4.0:jar:4.4.0 in http://nexus.bladex.cn/repository/maven-releases/ was cached in the local repository, resolution will not be reattempted until the update interval of blade-release has elapsed or updates are forced -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :blade-common

setting.xml是这样配置的

image.png

1条回答
  • 2021-01-07 18:23

    blade-common属于项目内部的依赖 ,本地工程打包的时候 ,需要先执行mvn clean install。然后再执行mvn clean package。否则本地找不到blade-common的依赖就会去maven远程库找了

    0 讨论(0)
提交回复