First you know what version of Oracle you have installed?
You can enter in the SQL window: SELECT * from V$instance the following results:
Discover my Oracle version number is:11.2.0.1.0
The ORACLEJDBC driver package is required for official Oracle authorization to be downloaded. So here is only a choice of a Oracle10.2 Ojdbc14.jar or Oracle11.2 Ojdbc6.jar (if you are 1og please select the previous 10.2g), by following the command, but note that First of all, two jar packages must be copied to C:\Documentsand settings\${user} directory, at first I did not copy, just casually find a directory, found always failed, the correct
:
Put the MAVEN command into the local repository:
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
After the success of the following:
You can also use the MAVEN command to place the
[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 warehouse is configured, configured as: D:\mysystem\Repositories\, default warehouse not this): put
Then add the following configuration to the project:
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>
Finally, the JDBC driver is added to the project.
Maven Management oracle11g JDBC Driver (manual installation oracle11g) detailed version