raft-java icon indicating copy to clipboard operation
raft-java copied to clipboard

build error, please help

Open gwnet opened this issue 4 years ago • 3 comments

wayne@ubuntu:~/raft-java/raft-java-example$ sudo sh build.sh

Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.9.1/log4j-slf4j-impl-2.9.1.jar (23 kB at 8.5 kB/s) Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-api/2.9.1/log4j-api-2.9.1.jar (240 kB at 24 kB/s) Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.9.1/log4j-core-2.9.1.jar (1.5 MB at 23 kB/s) Downloaded from central: https://repo.maven.apache.org/maven2/org/rocksdb/rocksdbjni/5.1.4/rocksdbjni-5.1.4.jar (7.5 MB at 22 kB/s) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 06:27 min [INFO] Finished at: 2020-01-23T04:56:55-08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project raft-java-example: Could not resolve dependencies for project com.github.wenweihu86.raft:raft-java-example:jar:1.9.0: Could not find artifact com.github.wenweihu86.raft:raft-java-core:jar:1.9.0 in central (https://repo.maven.apache.org/maven2) -> [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

gwnet avatar Jan 23 '20 12:01 gwnet

deployment also fail

wayne@ubuntu:~/raft-java/raft-java-example$ sudo sh deploy.sh [INFO] Scanning for projects... [INFO] [INFO] ------------< com.github.wenweihu86.raft:raft-java-example >------------ [INFO] Building raft-java-example 1.9.0 [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for com.github.wenweihu86.raft:raft-java-core:jar:1.9.0 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.661 s [INFO] Finished at: 2020-01-23T05:00:17-08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project raft-java-example: Could not resolve dependencies for project com.github.wenweihu86.raft:raft-java-example:jar:1.9.0: Failure to find com.github.wenweihu86.raft:raft-java-core:jar:1.9.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central 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 cp: cannot stat '../../target/raft-java-example-1.9.0-deploy.tar.gz': No such file or directory tar (child): raft-java-example-1.9.0-deploy.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now chmod: cannot access './bin/.sh': No such file or directory /home/wayne/raft-java/raft-java-example/env cp: cannot stat '../../target/raft-java-example-1.9.0-deploy.tar.gz': No such file or directory tar (child): raft-java-example-1.9.0-deploy.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now nohup: appending output to 'nohup.out' nohup: failed to run command './bin/run_server.sh': No such file or directory chmod: cannot access './bin/.sh': No such file or directory /home/wayne/raft-java/raft-java-example/env nohup: appending output to 'nohup.out' nohup: failed to run command './bin/run_server.sh': No such file or directory cp: cannot stat '../../target/raft-java-example-1.9.0-deploy.tar.gz': No such file or directory tar (child): raft-java-example-1.9.0-deploy.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now chmod: cannot access './bin/.sh': No such file or directory /home/wayne/raft-java/raft-java-example/env nohup: appending output to 'nohup.out' nohup: failed to run command './bin/run_server.sh': No such file or directory cp: cannot stat '../../target/raft-java-example-1.9.0-deploy.tar.gz': No such file or directory tar (child): raft-java-example-1.9.0-deploy.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now chmod: cannot access './bin/.sh': No such file or directory /home/wayne/raft-java/raft-java-example/env wayne@ubuntu:~/raft-java/raft-java-example$

gwnet avatar Jan 23 '20 13:01 gwnet

先到raft-java-core里执行mvn clean install

wenweihu86 avatar Jan 30 '20 08:01 wenweihu86

Tests run: 3, Failures: 1, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 49.764 s [INFO] Finished at: 2020-04-23T22:23:37+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project raft-java-core: There are test failures. [ERROR] [ERROR] Please refer to D:\下载\raft-java-master\raft-java-core\target\surefire-reports for the individual test results. [ERROR] -> [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/MojoFailureException 在raft-java-core里执行mvn clean install时出现上面的错误

xxsgxxn avatar Apr 24 '20 00:04 xxsgxxn