Open scossin opened 3 years ago
It seems oracle drivers are available in maven central repo: https://blogs.oracle.com/developers/your-own-way-oracle-jdbc-drivers-19700-on-maven-central
Here's the helper article on setting your own pom: https://www.oracle.com/database/technologies/maven-central-guide.html#DIY
Would you be willing to try making a local changes to your POM to reference the following artifact:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc-bom</artifactId>
<version>19.7.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
</dependency>
</dependencies>
That may allow you to resolve the oracle driver dependency without manually registering the driver. Note: I haven't tested if this version of the driver actually will work, but it's from oracle so it should. Note also that the dependencyManagement and dependencies are already defined in the POM.xml in webapi, so these are elements you should add to the existing XML nodes, don't just copy and paste the above into some random location in your pom.xml. On that note: make a backup of your pom before modifying :).
Yes your solution worked: https://github.com/scossin/WebAPI/commit/7c2d3de38228c831bff55754b048237e04c7de97 The pom.xml file we use is here: https://github.com/scossin/WebAPI/blob/master/pom.xml
This seems like a great item to contribute to the WebAPI wiki documentation so noting it with a label.
This driver dependency has been added to pom.xml, but under the oracle profile. I think that we want to include oracle drivers by default so that you can add a source for Oracle without building under the oracle-webapi profile. The oracle-webapi profile is for hosting WebAPI db on oracle, which isn't supported...but oracle data sources are.
We store our CDM data in Oracle database 19c Entreprise Edition. We use Postgresql for WebAPI database to store Oracle connection information. However WebAPI can't open the connection to Oracle because of a missing driver.
We solved the issue by downloading the driver: https://www.oracle.com/database/technologies/jdbc-ucp-122-downloads.html and added it to the pom.xml: