Wednesday, August 19, 2015

Command to publish jar into your local Maven Repository

D:\Kiran\Kiran\Projects\NCB\ETL>mvn install:install-file -DartifactId=ojdbc6 -Dversion= -Dpackaging=jar -Dfile=ojdbc6.jar

Points to be noted :

  • Maven client to be installed. You can check if maven is installed by running the below command ,
    mvn -version which would result in the below result,

  • Executing above command  results in below results,

Once you see the BUILD SUCCESS in the above command result,

You can add dependency in your POM.xml as below,

<groupId></groupId> <!-- Group ID from the command-->
<artifactId>ojdbc6</artifactId>  <!-- Artifact ID from the command-->
<version></version>       <!-- Version from the command-->

References :

1 comment:

  1. With proxy
    mvn install:install-file -DproxySet=true -DproxyPort=1234 -DartifactId=ojdbc6 -Dversion= -Dpackaging=jar -Dfile=ojdbc6.jar -DgeneratePom=true