Ah_Ch_97
Ah_Ch_97

Reputation: 79

I need to add Oracle JDBC driver in Maven local repository

https://www.mkyong.com/maven/how-to-add-oracle-jdbc-driver-in-your-maven-local-repository/ I tried to do

$ mvn install:install-file -Dfile=path/to/your/ojdbc8.jar -DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=19.3 -Dpackaging=jar but errors keep showing

[INFO] Scanning for projects...

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

[INFO] BUILD FAILURE

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

[INFO] Total time: 0.068 s

[INFO] Finished at: 2019-11-21T20:48:56+01:00

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

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\Administrateur). Please verify you invoked Maven from the correct directory. -> [Help 1]

Upvotes: 0

Views: 468

Answers (1)

kan
kan

Reputation: 28951

Please check that "path/to/your/ojdbc8.jar" doesn't not have spaces or special characters or "quote" it.

Upvotes: 1

Related Questions