uschindler commented on issue #12307:
URL: https://github.com/apache/lucene/issues/12307#issuecomment-1762822051

   If you want to create a classical classpath application that can be started 
with `java -jar application.jar` the correct way is to *NOT* package everything 
into a fat `application.jar` and instead collect all output files next to the 
`application.jar`, which itsself has a MANIFEST like this:
   
   ```
   Main-Class: my.app.Main
   Class-Path: lucene-core-9.8.0.jar lucene-codecs-9.8.0.jar other-library.jar 
log4j-2.19.0.jar
   ```
   
   When you then execute it, the `Class-Path` manifest entry will find the 
required JAR files in the same folder as the main JAR. This manifest entry can 
be easily created with Gradle assemble plugin. I don't know about Maven.


-- 
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: issues-unsubscr...@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to