xnnyygn / xraft

xnnyygn's raft implementation
MIT License
228 stars 107 forks source link

[ERROR] Failed to execute goal on project xraft-kvstore: Could not resolve dependencies for project in.xnnyygn.xraft:xraft-kvstore:jar:0.1.0-SNAPSHOT: Could not find artifact in.xnnyygn.xraft:xraft-core:jar:0.1.0-SNAPSHOT -> [Help 1] #10

Open OneCodeMonkey opened 3 years ago

OneCodeMonkey commented 3 years ago

While trying to build the source code, execute this command: cd xraft-kvstore && mvn package assembly:single

I got this error:

[INFO] ------------------------------------------------------------------------                                                    
[INFO] BUILD FAILURE                                                                                                               
[INFO] ------------------------------------------------------------------------                                                    
[INFO] Total time:  13.622 s                                                                                                      
[INFO] Finished at: 2020-09-28T10:16:39Z                                                                                           
[INFO] ------------------------------------------------------------------------                                                    
[ERROR] Failed to execute goal on project xraft-kvstore: Could not resolve dependencies for project in.xnnyygn.xraft:xraft-kvstore :jar:0.1.0-SNAPSHOT: Could not find artifact in.xnnyygn.xraft:xraft-core:jar:0.1.0-SNAPSHOT -> [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
--
--

xraft-compile-error

Am I missing to import something...?

OneCodeMonkey commented 3 years ago

I tried to import the xraft-core.jar package independently, but report the same :(

xnnyygn commented 3 years ago

Please run mvn package under the source root. Running under submodules won't success.

OneCodeMonkey commented 3 years ago

Please run mvn package under the source root. Running under submodules won't success.

This can success, but run: sh bin/xraft-kvstore -gc A,localhost,2333 B,localhost,2334 C,localhost,2335 -m group-member -i A -p2 3333 nothing happen。。。

xnnyygn commented 3 years ago

Nothing shown in the logs? It's weird. Can you describe more about your environment?