maven oracle driver

1. Enter the directory where ojdbc6.jar is located

E:\app\neusoft\product\11.2.0\client_2\jdbc\lib

 

 2. Enter the following command

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar -Dfile=ojdbc6.jar

 

3. Add the following code to pox.xml

<dependency>
	<groupId>com.oracle</groupId>
	<artifactId>ojdbc6</artifactId>
	<version>11.2.0</version>
</dependency>

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326520903&siteId=291194637