maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Power <>
Subject maven failing to resolve artifact that exists in repository
Date Sat, 15 Oct 2011 04:21:43 GMT
I am really confused.  Maven is failing to resolve an artifact that I 
can easily find in the remote repository.

I am trying to build an open source project whose git repository is found at

I get the following error:
[INFO] Failed to resolve artifact.

1) org.kohsuke.stapler:stapler:jar:1.167

   Try downloading the file manually from the project website.

   Then, install it using the command:
       mvn install:install-file -DgroupId=org.kohsuke.stapler 
-DartifactId=stapler -Dversion=1.167 -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the 
file there:
       mvn deploy:deploy-file -DgroupId=org.kohsuke.stapler 
-DartifactId=stapler -Dversion=1.167 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

   Path to dependency:
       1) com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT
       2) org.jenkins-ci.main:jenkins-core:jar:1.417
       3) org.kohsuke.stapler:stapler-adjunct-timeline:jar:1.3
       4) org.kohsuke.stapler:stapler:jar:1.167

1 required artifact is missing.

for artifact:

from the specified remote repositories:
   central (,
   m.g.o-public (

It seems to be only trying central.  However it is not available on 
central.  It is available on m.g.o-public.  Here is the url:

Why is maven going to central to find the jar, and not going to 
m.g.o-public?  It says it tried m.g.o-public but I do not see that 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message