Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

problem in Adding oracle jdbc driver on maven local repo

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am following this very well described procedure/command to add oracle jdbc driver to my local maven repo.
I am not clear though, from which directory should I run this command from.
I tried running it form my project directory, directory containing my driver,but I am constantly getting the same error.
Error:



What am I doing wrong?
My local repo is in the default location.
Please help.

Thanks in advance
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the exact command you are using.
 
Antraa Sethi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mvn install:install-file -Dfile = C:\app\Oracle11g\product\11.2.0\dbhome_1\owb\wf\lib\ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=11.2.0 -Dpackaging=jar
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are missing the -DgeneratePom=true param in that command.
 
Antraa Sethi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your prompt response.
I tried to run it with -DgeneratePom=true param too. It is not working....

Error:


What is this " No plugin found for prefix 'C' in the current project and in the plugin"?
Any help is appreciated. Looks like everybody has got over this problem.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

-Dfile = C:\app\Oracle11g\product\11.2.0\dbhome_1\owb\wf\lib\ojdbc14.jar



Don't include a space on either side of the = sign. Change it to:

-Dfile=C:\app\Oracle11g\product\11.2.0\dbhome_1\owb\wf\lib\ojdbc14.jar
 
Antraa Sethi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much.
It worked

Thanks again for your help.
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic