Oracle or MySQL Driver Dependency in Maven:
Maven Oracle JDBC Driver Dependency:
Command Line:
mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle
-DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
E:\HOME>mvn install:install-file -Dfile=C:\oraclexe\app\oracle\pro
duct\11.2.0\server\jdbc\lib\ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6
-Dversion=11.2.0 -Dpackaging=jar
In pom.xml
File : pom.xml
finally ,now you clean |mvn clean| it sets ojdbc jar to the maven repository literary
Maven MySQL JDBC Driver Dependency:
Command Line:
mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle
-DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
<project ...>
<dependencies>
<!--3rd party dependencies-->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0</version>
</dependency>
</dependencies>
</project>
Maven Oracle JDBC Driver Dependency:
Command Line:
mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle
-DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
E:\HOME>mvn install:install-file -Dfile=C:\oraclexe\app\oracle\pro
duct\11.2.0\server\jdbc\lib\ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6
-Dversion=11.2.0 -Dpackaging=jar
In pom.xml
File : pom.xml
<project ...>
<dependencies>
<!--3rd party dependencies-->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0</version>
</dependency>
</dependencies>
<build></build>
</project>
finally ,now you clean |mvn clean| it sets ojdbc jar to the maven repository literary
Maven MySQL JDBC Driver Dependency:
Command Line:
mvn install:install-file -Dfile={Path/to/your/ojdbc.jar} -DgroupId=com.oracle
-DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
<project ...>
<dependencies>
<!--3rd party dependencies-->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0</version>
</dependency>
</dependencies>
</project>
No comments :
Post a Comment