Maven ojbc 6 jar not found in central repository

后端 未结 3 1188
一生所求
一生所求 2020-12-04 02:35

Hi I have placed ojdbc jar in my local repository still I am getting the below error. Could not resolve dependencies for project Failure to find com.oracle:ojdbc6:jar:11.2.

相关标签:
3条回答
  • 2020-12-04 03:11

    Make sure jar name includes version:

    C:\Rahul\Repository\com\oracle\ojdbc6\11.2.0\ojdb6-11.2.0.jar
    
    0 讨论(0)
  • 2020-12-04 03:20

    download the jar, and install it manually into your maven local cache

    mvn install:install-file -Dfile={/path/to/ojdbc.jar} -DgroupId=com.oracle 
    -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
    

    if you have your nexus for your organization it would be better to place it there so it is shared across local developers

    0 讨论(0)
  • 2020-12-04 03:24

    Oracle is now exposing a maven repository at maven.oracle.com However you need to be authenticated.

    See https://blogs.oracle.com/WebLogicServer/entry/weblogic_server_and_the_oracle

    According to the comments in the blog post the ojdbc driver should be available at the following coordinates:

    <groupId>com.oracle.weblogic</groupId>
     <artifactId>ojdbc7</artifactId>
     <version>12.1.3-0-0</version>
     <packaging>jar</packaging>
    
    0 讨论(0)
提交回复
热议问题