aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven not searching local repository for a JAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven not searching local repository for a JAR" Watch "Maven not searching local repository for a JAR" New topic
Author

Maven not searching local repository for a JAR

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
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

Joined: May 14, 2008
Posts: 5779
    
    7

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?


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven not searching local repository for a JAR
 
Similar Threads
Add dependency in maven project for j2ee.jar
How use sonar for an existing project in eclipse ?
Maven Error - Package does not exist, Symbols not recognised
[Maven] Could not find artifact javax.transaction:jta:jar:1.0.1B in central http://repo1.maven.org/
Unable to create one single jar file in maven with dependencies included inside