WLock
WLock copied to clipboard
[bug][compile]编译失败
git clone 后直接mvn clean install
[ERROR] Failed to execute goal on project server: Could not resolve dependencies for project com.wuba.wlock:server:jar:1.0.0: Could not find artifact io.github.wuba:wpaxos.core:jar:1.0.0 in nexus (http://maven.58corp.com:8058/nexus/content/groups/public) -> [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 :server
io.github.wuba:wpaxos.core:jar:1.0.0 在 mvnrepository.com 也无法搜索到。
之前在中央仓库发布的wpaxos.core:jar:1.0.0包未知原因被删除,重新发布了1.0.0-Release版本,pom已更新,可以同步下
git pull
更新后还是有错误,提示找不到的文件是io/github/wuba/wpaxos/1.0.0-Release/wpaxos-1.0.0-Release.pom
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from nexus: http://maven.58corp.com:8058/nexus/content/groups/public/io/github/wuba/wpaxos/1.0.0-Release/wpaxos-1.0.0-Release.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for wlock 1.0.0:
[INFO]
[INFO] wlock .............................................. SUCCESS [ 0.523 s]
[INFO] repository ......................................... SUCCESS [ 3.502 s]
[INFO] common ............................................. SUCCESS [ 0.390 s]
[INFO] registry ........................................... SUCCESS [ 4.015 s]
[INFO] server ............................................. FAILURE [ 0.770 s]
[INFO] client ............................................. SKIPPED
[INFO] benchmark .......................................... SKIPPED
[INFO] example ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.515 s
[INFO] Finished at: 2022-08-22T17:30:52+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project server: Could not resolve dependencies for project com.wuba.wlock:server:jar:1.0.0: Failed to collect dependencies at io.github.wuba:wpaxos.core:jar:1.0.0-Release: Failed to read artifact descriptor for io.github.wuba:wpaxos.core:jar:1.0.0-Release: Could not find artifact io.github.wuba:wpaxos:pom:1.0.0-Release in nexus (http://maven.58corp.com:8058/nexus/content/groups/public) -> [Help 1]
辛苦重新拉下代码,更新了wpaxos版本,这次没问题了