Java

Install Maven Local Repository

Download Apache Maven disini.

Tambahkan maven ke path pada Environment Variables.

Jalankan command berikut ini:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> 

Jika file JAR di hasilkan oleh Apache Maven:

mvn install:install-file -Dfile=<path-to-file> 

Jika menggunakan pom-file:

mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile> 

Keterangan:
<path-to-file> lokasi file jar
<group-id> nama group id (misal: org.akhal)
<artifact-id> nama library (misal: kbbi)
<version> versi library
<packaging> jenis packaging (misalkan: jar)

Leave a Reply

Your email address will not be published. Required fields are marked *