MonkeyCanCode commented on issue #542:
URL: https://github.com/apache/polaris/issues/542#issuecomment-2540506426

   I am not very familiar with gradle but here is the finding:
   
   With the script (auto generated by gradle I think), it will try to run 
following command:
   ```
   java -classpath 
/xxx/lib/polaris-dropwizard-service-1.0.0-incubating-SNAPSHOT.jar 
org.apache.polaris.service.dropwizard.PolarisApplication
   ```
   
   However, we don't have 
`lib/polaris-dropwizard-service-1.0.0-incubating-SNAPSHOT.jar`, Instead, we 
have `lib/polaris-dropwizard-service-1.0.0-incubating-SNAPSHOT-raw.jar`. The 
`raw` seems to be from `polaris-shadow-jar.gradle.kts`.
   
   Another thing is, even if I fixed the file name above, that is still not the 
right command to use. Instead, here should be the right command:
   ```
   java -classpath 
/xxx/lib/polaris-dropwizard-service-1.0.0-incubating-SNAPSHOT-raw.jar:/xxx/lib/*
 org.apache.polaris.service.dropwizard.PolarisApplication
   ```
   
   Then you will see following:
   ```
   usage: java -jar polaris-dropwizard-service-1.0.0-incubating-SNAPSHOT-raw.jar
          [-h] [-v] {server,check,bootstrap,purge} ...
   
   positional arguments:
     {server,check,bootstrap,purge}
                            available commands
   
   named arguments:
     -h, --help             show this help message and exit
     -v, --version          show the application version and exit
   
    @@@@   @@@  @       @    @@@@   @  @@@@    @@@@    @  @@@@@  @    @     @@@ 
  @@@@
    @   @ @   @ @      @ @   @   @  @  @@     @       @ @   @   @ @   @    @   
@ @
    @@@@  @   @ @     @@@@@  @@@@   @    @@   @      @@@@@  @  @@@@@  @    @   
@ @  @@@
    @      @@@  @@@@ @     @ @  @@  @  @@@@    @@@@ @     @ @ @@   @@ @@@@  @@@ 
  @@@@
   
                        *
   
   
                                         /////\
                                      //\\///T\\\
                                   ///\\\////\\\\\\
                                  //\\\\T////\\\\\\\\\
                             /T\ //\\\\\T///T\\//T\\\\\\
                           //\\\/////T\\////\\/////\\\\\\\  //\\
                        //\\\\\\T///////////////////T\\\\\\\T\\\\\
                     //\\\\/////T\//////////\///////T\\\\\T\\\\\\\\
                    //\\\\\/////\\\T////////////////\\\\\\/\\\\\\\\\
   
,,..,,,..,,,..,//\\\\////////\\\\\\\\\\/////////\\\\\///\\\\\\\\\\,,,..,,..,,,..,,,.
   
,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,..,,,.,,,..,,,..,
   ```
   
   Hope this can help someone who is more familiar with gradle to fix this 
issue.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to