coniks-sys / coniks-java

A CONIKS implementation in Java
http://coniks.org
Other
60 stars 13 forks source link

Cannot find required jar files #45

Open zouqiwu09 opened 6 years ago

zouqiwu09 commented 6 years ago

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?

masomel commented 6 years ago

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 commented 6 years ago

@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.

zouqiwu09 commented 6 years ago

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!!!

masomel commented 6 years ago

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 commented 6 years ago

TODOs: