I work in IDEA using Maven, so for me to install the ojdbc7.jar library to communicate with the Oracle database for one task, I had to do it manually, because when adding dependencies to pom.xml, the build did not occur because I could not find the file in the repositories. So, it turns out that this library was created in my local repository, and when everything started out (Git) it turned out that the others do not see this library. How can this problem be solved? Do not manually install everything on local repositories.

  • one
    if you have a common repzitoriy can fill in there. Or maybe it is better to connect it directly to the project without a repository and upload it to git? - pavel
  • In general, the installer of this library added the file of the library to the lib folder. After I wrote the maven-install-plugin plugin into pom, I registered all the parameters and everything worked. Now everyone sees this library when building it. - Aleksander Shakotko
  • NEVER. NOT. Pour over it. BINARY. V. GIT. NEVER. - JBaruch 7:44 pm
  • @zRrr will work this way for ojdbc7, and others from Orakla, but not for everyone else. But you are right, now add to the answer. - JBaruch

1 answer 1

Specifically for jdbc drivers and other djars from Orakla, you can add to your (and everyone on your team) Orakla Maven settings repository .

If you don’t want (and do it right) don’t add to each and every one each new repository that you use, then you still need a global repository for your team or organization. Since I am from Jayfrog , I furiously drown for the Artifactor . It is open source, free, and I'm here to help if something is not working.

It is in the Artifactor configuration that you will then add the Orakla repositories (as well as all the others you will need), and after you once set up Maven to work with the Artifactor, you will not have to change client settings to add new repositories.

In principle, everything should be simple and clear. After installing (unzip), the "Set Me Up" button and documentation are your best friends. There are still webinars on Tuesdays (here are the records ) and screencasts , and here it is specifically the dock for adding the Oracle repository .

  • one
    I thank you! And the truth is a good decision! - Aleksander Shakotko