--Download the Jar package directly from the Maven repository on the command line only --Run the downloaded Jar package on the command line
--When you want to use tool-based Jar etc., you do not need to create POM.xml etc., you can complete it with just the command line
Example: When you want to download and execute a package with groupId of org.riversun, artifactId of random-forest-codegen, and version 1.0.0.
** 1. Download the jar file to the current directory **
mvn dependency:get -Dartifact=org.riversun:random-forest-codegen:1.0.0 -Ddest=./
(If -Ddest is omitted, it will be downloaded to the local Maven repository **. M2 **.)
** 2. Run the jar **
java -cp random-forest-codegen-1.0.0.jar org.riversun.rfcode.RandomForestCodeGen
(org.riversun.rfcode.RandomForestCodeGen is the main class you want to execute. If omitted, the default main class will be executed)
It is convenient because you can download the tool system that works with Jar alone directly from the Maven repository and execute it immediately.
Recommended Posts