Maven ojdbc jar dependency error: package oracle.jdbc does not exist

后端 未结 5 1621
孤城傲影
孤城傲影 2021-01-17 16:29

Heading

Am trying to use jdbc connection in my Java EE6 application(class name VisualizerRepository.java), i have the jdbc driver in nexus repository

The c

5条回答
  •  庸人自扰
    2021-01-17 17:16

    I tried to get gradle to pull the jar from my local maven repo and even using flatDir in the repositories closure, but to no effect. In the end, I created a lib folder in my project and put the jar in it and added

    dependencies {
        ...
        compile files('lib/ojdbc7.jar')
        ...
    }
    

    I don't think this is the prettiest way to handle it, but it worked, and it's good enough for now.

提交回复
热议问题