You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/05/31 07:05:32 UTC

[GitHub] [bookkeeper] eolivelli opened a new issue #2725: Sometimes bin/bookkeeper localbookie does not work from source code

eolivelli opened a new issue #2725:
URL: https://github.com/apache/bookkeeper/issues/2725


   When you run the command `bin/bookkeeper localbookie 1` from the source code it may happen that it does not work and finished with
   `Error: Could not find or load main class org.apache.bookkeeper.util.LocalBookKeeper`
   
   This is because the `find_module_jar` function finds these files as main BK server jar:
   ```
   /PATH-TO-CODE/bookkeeper-server/target/bookkeeper-server-4.14.1-javadoc.jar
   /PATH-TO-CODE/bookkeeper-server/target/bookkeeper-server-4.14.1-sources.jar
   /PATH-TO-CODE/bookkeeper-server/target/bookkeeper-server-4.14.1-tests.jar
   ```
   
   ***To Reproduce***
   
   Run 
   ```
   mvn clean install -DskipTests
   bin/bookkeeper localbookie 1
   ```
   
   
   ***Suggested fix***
   Enhance `find_module_jar` in order to skip additional artifacts or use some mvn plugin to get the path of the jar file
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org