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

Cannot find required jar files

Open zouqiwu09 opened this issue 7 years ago • 5 comments

Hello,

When I run the command “mvn install” in path “coniks-java/coniks_server” it throws such error.

pastedgraphic-5

The same error will throw if I try to build a .jar by running “mvn package”. Therefore, I guess it may be because the target jar files are not in https://repo.maven.apache.org/maven2. May I know if there is any way that I can fix it, please?

zouqiwu09 avatar Oct 10 '18 17:10 zouqiwu09

Hi @zouqiwu09, thanks for bringing this issue to our attention! I'll go take a look later today or tomorrow to see what's going on.

masomel avatar Oct 10 '18 19:10 masomel

@zouqiwu09, I was able to reproduce this error when I didn't have the dependencies in my local Maven repository. To fix the issue, I ran mvn install in coniks_common, crypto etc. Please let me know if this doesn't resolve your issue. I will update the README to indicate that the coniks_server dependencies should be installed locally before running mvn install for the server or test client.

masomel avatar Oct 12 '18 08:10 masomel

Hello, @masomel, thank you so much for testing and replying! It does fix my problem!!!

By the way, in shell scripts the variable for CLASS_DEST is: image However, it should be "coniks_server-0.4.0.jar", right? Since after I ran "mvn install", what in the "target" is this file. After I changed it to "coniks_server-0.4.0.jar", it would run successfully.

Also, I have another question.

image image

I run both server and client in test mode and register 5 users, but I cannot lookup them after that. Here is the logs:

image

May I know if it's because I am doing somewhere wrong in the procedures again, please?

Thank you!!!

zouqiwu09 avatar Oct 16 '18 01:10 zouqiwu09

Hi @zouqiwu09, I'm glad that resolved your issues! And thank you for pointing out the version number problem in the shell scripts, I'll edit that as well.

Regarding your problems with the lookups, remember that the server will have a short delay between registration and the insertion into the Merkle tree due to the epoch duration. So check your server config file to see what your epoch duration is, and once that time frame has passed, try to do the lookup again. If it still doesn't work, do let us know! And please open a new issue for each unrelated question next time -- we like to keep things as modular as possible :)

masomel avatar Oct 17 '18 02:10 masomel

TODOs:

  • [ ] README should include note about installing each coniks-java package locally with Maven
  • [ ] update coniks-java version in shell scripts for server and test client

masomel avatar Oct 17 '18 02:10 masomel