All,
Our beloved DBA’s have come up with a request for us to add hibernate onsconfiguration for our Oracle JDBC connection. Now, for this to work, we need to have Oracle provided ons.jar in the classpath.
The current stanza we have for oracle jdbc library is
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
<scope>compile</scope>
</dependency>
I tried to look around if we can add ons.jar to maven dependency list, but could not. Could anyone please provide any inputs on how to add this?
I browsed through the ibiblio maven repository, it only has ojdbc14 and nothing for ons.jar.
Cheers!
Since ons.jar is not available in your repos, you have to download it manually and then add it to your repos.
You can add it to your local repository:
If you have a remote repository, you can deploy to it with the following command:
More at: Maven – Guide to deploying 3rd party JARs to remote repository
With the files installed in your repo, you can add the dependency to your project’s pom.xml: