install font jar ke dalam repository maven

Bismillah

Langsung sajo to do point

q> Untuk linux

mvn install:install-file -Dfile=/home/saifi/Desktop/CourierNew.jar -DgroupId='couriernew' -DartifactId='com.fonts' -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true

q> Untuk windows

mvn install:install-file -Dfile=E:\\MYCODE\\fontzip\\CourierNew.jar -DgroupId=couriernew -DartifactId=com.fonts -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=E:\\MYCODE\\fontzip\\Brush.jar -DgroupId=com.brush -DartifactId=fontbrush -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true

jalankan pada command prompt atau terminal linux yang sudah terinstall maven

cara import dependency pada pom.xml nya adalah :

Untuk import jar (CourierNew.jar)

<dependency>
<groupId>couriernew</groupId>
<artifactId>com.fonts</artifactId>
<version>1.0</version>
</dependency>

Untuk import jar (Brush.jar)

<dependency>
<groupId>com.brush</groupId>
<artifactId>fontbrush</artifactId>
<version>1.0</version>
</dependency>

selesai

Alhamdulillah

Published by

saifiahmada

Begin a big Process with a bit trying

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s