Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven not searching local repository for a JAR

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To mvn compile an Oracle JDBC program I put the JAR in my local repository :



Check and find :


Should I expect to find ojdbc6.jar in this directory ?

ojdbc6-11.2.0.POM
----------------------


My POM :


Compile mvn compile :

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Part of your post doesn't make sense - the location of the JAR file in the local repository. What is with the "maven.REPOSITORIES" text, and why is the file name on the next line, and what is with all of the spaces?

Given that C:\Documents and Settings\dell\.m2\repository is the location of your local repository, the JAR file, and its POM, should be at:
C:\Documents and Settings\dell\.m2\repository\com\oracle\ojdbc6\11.2.0\ojdbc6-11.2.0.jar
C:\Documents and Settings\dell\.m2\repository\com\oracle\ojdbc6\11.2.0\ojdbc6-11.2.0.pom

Check that both of these files exist.

Looking at you mvn install:install-file command, what is "{ORACLE_HOME}"? Look at line 8 in the install-file output, is that a valid path to the JAR file?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic