分类目录归档:Java

maven 增加oracle驱动

D:\db\oracle\product\11.2.0\dbhome_1\jdbc\lib>mvn install:install-file -DgroupId
=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=ojdb
c6.jar
[INFO] Scanning for projects…
[INFO]
[INFO] ————————————————————————
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ————————————————————————
[INFO]
[INFO] — maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom

[INFO] Installing D:\db\oracle\product\11.2.0\dbhome_1\jdbc\lib\ojdbc6.jar to D:
\java\mvn_repository\com\oracle\ojdbc6\11.2.0.1.0\ojdbc6-11.2.0.1.0.jar
[INFO] Installing C:\Users\zhong\AppData\Local\Temp\mvninstall514906640323213049
9.pom to D:\java\mvn_repository\com\oracle\ojdbc6\11.2.0.1.0\ojdbc6-11.2.0.1.0.p
om
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 1.385 s
[INFO] Finished at: 2015-07-11T16:28:23+08:00
[INFO] Final Memory: 7M/244M
[INFO] ————————————————————————

在pom文件中增加

<dependency>

<groupId>com.oracle</groupId>

<artifactId>ojdbc6</artifactId>

<version>11.2.0.1.0</version>

</dependency>