Maven management Oracle11gJDBC Driver (manual installation of oracle11g) Details
First, you know what version of Oracle you have installed?
You can enter select * from v $ instance in the SQL window to obtain the following results:
I found that my oracle version is:11.2.0.1.0
The OracleJDBC driver package must be officially authorized by Oracle to be downloaded. Therefore, only one ojdbc14.jar of Oracle10.2 or ojdbc6.jar of Oracle11.2 is selected here (if you are 1og, select the first 10.2 GB). Run the following command,Note thatFirst, you must copy the two jar packages to the C: \ Documentsand Settings \ $ {user} directory. At first, I did not copy the package. I just found a directory and found it always failed, correct.
:
Put the Maven command in the local database:
Maven code
Mvn install: install-file-DgroupId = com. oracle-DartifactId = ojdbc14-Dversion = 10.2.0.1.0-Dpackaging = jar-Dfile = ojdbc14.jar
Mvn install: install-file-DgroupId = com. oracle-DartifactId = ojdbc6-Dversion = 11.2.0.1.0-Dpackaging = jar-Dfile = ojdbc6.jar
The following information is displayed after successful execution:
You can also use maven commands to put them in private servers.
[Html]View plaincopyprint?
Mvn deploy: deploy-file-DgroupId = com. cloudhopper. proxool-DartifactId = proxool-Dversion = 0.9.1-Dpackaging = jar-Dfile = proxool-0.9.1.jar-Durl = http: // 172.16.68.3 to the local repository: specific results (my local repository is configured with: D: \ mysystem \ Repositories \, which is not the default repository): Put
Maven code
<dependency><groupId>com.oracle</groupId><artifactId>ojdbc6</artifactId><version>11.2.0.1.0</version></dependency><dependency><groupId>com.oracle</groupId><artifactId>ojdbc14</artifactId><version>10.2.0.1.0</version></dependency>
The JDBC driver is added to the project.