I follow the below two links to download ojdbc jar and install it locally in Windows system:
I end up using below command (use ` to escape -):
mvn install:install-file `-Dfile=C:\Users\xxx\ojdbc6.jar `-DgroupId=com.oracle `-DartifactId=ojdbc6 `-Dversion=11.2.0.2.0 `-Dpackaging=jar `-DgeneratePom=true
but I am still getting below errors:
[ERROR] No plugin found for prefix '`-Dfile=C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\peter\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
Also, although it looks like by doing above, ojdbc jar is installed under .m2/repository, when I run mvn install to the project, I am still getting:
Failure to find com.oracle:ojdbc6:jar:11.2.0.2.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
How can I resolve this?