How to Use Oracle With Maven

Hi friends, we all use maven for easy and burden-free project development. Its very easy to add central jars to local repository by adding their group id, artifact id, and version as dependency. But sometime it produces burden to us if the required jar is not available at central repository. So in such case, we will have to manually install that jar to our local repository by using "maven install" command.

Syntax : -    mvn install:install-file -Dfile="jar_name_alongwith_path" 
                               -DgroupId="required_group_id" -DartifactId="required_artifactId" 
                                              -Dversion="required_version" -Dpackaging="jar"     


For Example :

                        mvn install:install-file 
-Dfile="C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar
                               -DgroupId="oracle.jdbc.driver" -DartifactId="ojdbc14" 
                                              -Dversion="10.2.0" -Dpackaging="jar"   


Here DgroupId, DartifactId, Version is not compulsory this, you can provide any values for these arguments.

Comments

Popular posts from this blog

Components of C language

Decision making using if statement

How to make payment for final certificate, migration, provisional for the students of last semester of ptu?