Showing posts with label jar. Show all posts
Showing posts with label jar. Show all posts

Wednesday, August 19, 2015

Command to publish jar into your local Maven Repository


D:\Kiran\Kiran\Projects\NCB\ETL>mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -Dfile=ojdbc6.jar
 -DgeneratePom=true

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,

                <dependency>
<groupId>com.oracle</groupId> <!-- Group ID from the command-->
<artifactId>ojdbc6</artifactId>  <!-- Artifact ID from the command-->
<version>11.2.0.3</version>       <!-- Version from the command-->
</dependency>

References :


Friday, March 13, 2015

Change default program from command line

Sometime we wont be able to open an executable jar using default program after some infinite attempts using "open with". I have faced similar problem as there is a jar which I have to open using javaw.exe and somehow I was unable to. So here is what I have did,

I have changed the default program of jarfile using command line and awesome thing is "IT WORKED" :P

here is the command,

 
And then I opened the jar and It worked,