Dealing with “Could not find artifact”


Chris Georgoulis and I describe solutions to working around the following maven error:

Could not find artifact in central ( -> [Help 1]

Below I describe 3 ways how to handle this but there are also other solutions available. Check reference at the bottom.

If you plan on using your Project as a dependency:

The simplest solution is to manually install the JAR into the local maven repository. Using the example from stackoverflow:

With the maven entry:


Run the following command in the command line:

mvn install:install-file -DartifactId=ojdbc14 \
     -Dversion= -Dpackaging=jar -Dfile=ojdbc.jar -DgeneratePom=true

If you plan on using your Project as a dependency & want the process automated:

Instead of installing the JAR to the repository manually, there’s actually a plugin for that – thanks Chris for the info.

Add the following entry:


If your don’t plan on using your Project as a dependency in another project:

  1. Enter in your POM.xml a relative or absolute path denoting the JAR location, for example:
  2. Add the jar file into your project.
    for my project I download the JAR file from and added the file ojdbc14.jar to the project/lib folder.



Menelaos Bakopoulos

Mr. Menelaos Bakopoulos is currently pursuing his PhD both at Center for TeleInFrastruktur (CTiF) at Aalborg University (AAU) in Denmark and Athens Information Technology (AIT) in Athens, Greece. He received a Master in Information Technology and Telecommunications Systems from Athens Information Technology and a B.Sc. in Computer Science & Management Information Systems from the American College of Thessaloniki. Since April 2008 he has been a member of the Multimedia, Knowledge, and Web Technologies Group.

More Posts