Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error, please help #25

Open
gwnet opened this issue Jan 23, 2020 · 3 comments
Open

build error, please help #25

gwnet opened this issue Jan 23, 2020 · 3 comments

Comments

@gwnet
Copy link

gwnet commented Jan 23, 2020

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
Copy link
Author

gwnet commented Jan 23, 2020

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$

@wenweihu86
Copy link
Owner

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

@xxsgxxn
Copy link

xxsgxxn commented Apr 24, 2020

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时出现上面的错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants