-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
青苗
committed
Aug 22, 2016
1 parent
d456b20
commit 9a256bc
Showing
2 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,41 @@ | ||
|
||
# 驱动设置 | ||
|
||
> 官方地址:http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html | ||
本地:/mybatis-plus/src/test/resources/ojdbc14.jar | ||
|
||
# 导入本地 Maven 库 | ||
|
||
> mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5.0 -Dpackaging=jar -Dfile=D:\jars\ojdbc14.jar | ||
``` | ||
<dependency> | ||
<groupId>com.oracle</groupId> | ||
<artifactId>ojdbc14</artifactId> | ||
<version>10.2.0.5.0</version> | ||
</dependency> | ||
``` | ||
|
||
|
||
# 驱动设置 | ||
|
||
> 官方地址:http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html | ||
本地:/mybatis-plus/src/test/resources/ojdbc14.jar | ||
|
||
# 导入本地 Maven 库 | ||
|
||
> mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5.0 -Dpackaging=jar -Dfile=D:\jars\ojdbc14.jar | ||
|
||
# 出现异常,使用带 "" 的导入方式! | ||
|
||
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/hubin). Please verify you invoked Maven from the correct directory. -> [Help 1] | ||
|
||
> mvn install:install-file "-DgroupId=com.oracle" "-DartifactId=ojdbc14" "-Dversion=10.2.0.5.0" "-Dpackaging=jar" "-Dfile=D:\jars\ojdbc14.jar" "-DgeneratePom=true" | ||
|
||
``` | ||
<dependency> | ||
<groupId>com.oracle</groupId> | ||
<artifactId>ojdbc14</artifactId> | ||
<version>10.2.0.5.0</version> | ||
</dependency> | ||
``` | ||
|
||
|
||
|
||
# 如果你不想导入改为如下依赖 | ||
|
||
``` | ||
<dependency> | ||
<groupId>com.oracle</groupId> | ||
<artifactId>ojdbc14</artifactId> | ||
<version>10.2.0.5.0</version> | ||
<scope>system</scope> | ||
<systemPath>${project.basedir}/src/test/resources/oracle/ojdbc14.jar</systemPath> | ||
</dependency> | ||
``` | ||
|
||
|