Maven connect with Oracle jdbc driver to external database problem

Liquibase version: 4.0.0

Maven version: Apache Maven 3.6.3

Oracle db version: Oracle Database 12c Standard Edition

I’m trying to use ojdbc8.jar in maven without setting the classpath: ojdbc8.jar in the file. I found here that you can upload the ojdbc8.jar in your local maven repository.

I did this with the following command:

mvn install:install-file -Dfile=C:\path\to\ojdbc8.jar -DgroupId="" -DartifactId=ojdbc8 -Dversion="" -Dpackaging=jar

Verified the result and I can now find the following file: C:\Users\cft\.m2\repository\com\oracle\jdbc\ojdbc8\\ojdbc8-

Now when I run the command:

mvn liquibase:update -P release-abap-test

I get the error Possibly the wrong driver for the given database URL. This error occurs for all databases that are not on my local machine. The same command works fine for a database that is on my local machine. Executing a direct liquibase update including a reference to a local copy of the ojdbc8.jar command works fine for all databases that are not on my local machine. What am I doing wrong here?

[INFO] Liquibase Community 4.0.0 by Datical

[INFO] Starting Liquibase at 15:01:55 (version 4.0.0 #19 built at 2020-07-13 19:45+0000)

[INFO] ------------------------------------------------------------------------


[INFO] ------------------------------------------------------------------------

[INFO] Total time:  3.470 s

[INFO] Finished at: 2020-08-19T15:01:57+02:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.0.0:update (default-cli) on project liquibase-poc:

[ERROR] Error setting up or running Liquibase:

[ERROR] liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to jdbc:oracle:thin:@//bk-rdk-ota-ora-scan:1521/BKTST with driver oracle.jdbc.OracleDriver.  Possibly the wrong driver for the given database URL

[ERROR] -> [Help 1]


[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.


[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1]

My project contains in the most basic form the following files.



├── master.changelog.xml

└── pom.xml

The content of my file:


driver: oracle.jdbc.OracleDriver

The content of my master.changelog.xml:

<?xml version="1.0" encoding="utf-8" ?>

<databaseChangeLog xmlns="" xmlns:ext="" xmlns:pro="" xmlns:xsi="" xsi:schemaLocation="">

    <include file="pathtoanotherxmlfile.changelog.xml" relativeToChangelogFile="true"/>

    <include file="pathtojustanotherxmlfile.changelog.xml" relativeToChangelogFile="true"/>


The content of my pom.xml:

<project xmlns=""

    xmlns:xsi="" xsi:schemaLocation="">








        <!-- Oracle -->






        <!-- Liquibase -->












                    <!-- Use Java 1.8 -->













































After a lot of frustration it turns out that this problem was caused by an incorrect password… When you cannot connect with maven to an oracle database the only error message you get is that it is possibly the wrong driver. However, if you run it directly with liquibase you get a more meaningfull message!