Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5844143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:15:05+00:00 2026-05-22T12:15:05+00:00

All, Our beloved DBA’s have come up with a request for us to add

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:15:06+00:00Added an answer on May 22, 2026 at 12:15 pm

    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:

    mvn install:install-file -DgroupId=com.oracle -DartifactId=ons -Dversion=10.2.0.2.0 -Dfile=/path/to/file -Dpackaging=jar -DgeneratePom=true
    

    If you have a remote repository, you can deploy to it with the following command:

    mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ons -Dversion=10.2.0.2.0 -DrepositoryId=<id-to-map-on-server-section-of-settings.xml> -Durl=<url-of-the-repository-to-deploy>
    

    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:

    <dependency>
     <groupId>com.oracle</groupId>
     <artifactId>ons</artifactId>
     <version>10.2.0.2.0</version>
     <scope>compile</scope>
    </dependency>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now we have all our code gathered in main.lua. We don't want to
We have for all our tests a method which starts a Jetty Server to
I have a profile weblog that contains all our users details (fields seperate from
This issue occurs in our beloved Internet Explorer 7: I have a list of
We generally prefer to have all our varchar / nvarchar columns non-nullable with a
Previously for all our asp.net applications we have been using a sysadmin user within
We heavily use Smarty for all our front end templating. I have observed the
Our server got hacked via some SQL Injection method (now patched). All our PHP
We have all our sites using the xhtml transitional doctype. Would just like to
We currently uses Jenkins for all our (Java) build/deployment from a Linux box. Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.