To execute a jar file that contains all its required dependencies downloaded from Maven, you can use the following command:
java -jar path/to/jar/file.jar
Make sure to replace path/to/jar/file.jar
with the actual path to your jar file. This command will automatically load all the required dependencies from inside the jar file and execute the main class specified in the manifest file of the jar.
Asked: 2022-02-08 11:00:00 +0000
Seen: 7 times
Last updated: Apr 27 '22