• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Failed to collect dependencies Maven error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,

I am getting below error whenever I do maven install..Checking previous thread I have checked the URL for common and its works perfect. Not sure what is the issue

[ERROR] Failed to execute goal on project pss-price-avail: Could not resolve dep
endencies for project com.sears.hs.aim.pss.price.avail:pss-price-avail:jar:2.3.1
1-SNAPSHOT:
Failed to collect dependencies for [com.sears.hs.aim.pss.itm:pss-itm
:jar:1.2.13 (compile),
com.sears.hs.commons:unit-locator:jar:2.0.1 (compile),
com.sears.hs.commons:hs-properties:jar:1.1.4 (compile),
aspectj:aspectjweaver:jar:1.5.3 (compile),
com.sears.hs.aim.pss.inventory:pss-inv:jar:1.1.11 (compile),
com.sears.hs.aim.pss.vendor:pss-vendor:jar:2.0.29 (compile),
com.sears.hs.aim.pss.price.avail.client:pss-price-avail-client:jar:2.0.7-SNAPSHOT (compile),
dbc:informix:jar:bc:3.0.0 (compile), commons-beanutils:commons-beanutils:jar:1.8.2 (com
pile), commons-collections:commons-collections:jar:3.2.1 (compile), commons-lang
:commons-lang:jar:2.4 (compile),com.sears.hs.commons:hibernate-support:jar:1.1.
1 (compile), org.slf4j:slf4j-log4j12:jar:1.5.2 (compile),
org.springframework:sp
ring-jdbc:jar:2.5.6 (compile), org.springframework:spring-context:jar:2.5.6 (com
pile), org.springframework:spring-orm:jar:2.5.6 (compile),
org.springframework:s
pring-tx:jar:2.5.6 (compile), org.springframework:spring-aop:jar:2.5.6 (compile)
, org.hibernate:hibernate:jar:3.2.7.ga (compile),
junit:junit:jar:4.4 (test), or
g.springframework:spring-test:jar:2.5.6 (test),
hsqldb:hsqldb:jar:1.8.0.7 (test)
, org.easymock:easymock:jar:2.4 (test), org.springmodules:spring-modules-cache:j
ar:0.8a (compile), org.perf4j:perf4j:jar:0.9.13 (compile), commons-jexl:commons-
jexl:jar:20040901.055348 (compile),
com.thoughtworks.xstream:xstream:jar:1.4.3 (
compile)]: Failed to read artifact descriptor for commons-jexl:commons-jexl:jar:
20040901.055348: Could not transfer artifact commons-jexl:commons-jexl:pom:20040
901.055348 from/to central (http://maven00.vm.searshc.com:8080/artifactory/repo)
:Failed to transfer file: http://maven00.vm.searshc.com:8080/artifactory/repo/c
ommons-jexl/commons-jexl/20040901.055348/commons-jexl-20040901.055348.pom. Retur
n code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
[ERROR]


My pom.xml is



 
Saloon Keeper
Posts: 15555
364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you install com.sears.hs.aim.pss.itm:pss-itm:jar:1.2.13 into your local repository?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the root error:

Failed to read artifact descriptor for commons-jexl:commons-jexl:jar:
20040901.055348: Could not transfer artifact commons-jexl:commons-jexl:pom:20040
901.055348 from/to central (http://maven00.vm.searshc.com:8080/artifactory/repo)
:Failed to transfer file: http://maven00.vm.searshc.com:8080/artifactory/repo/c
ommons-jexl/commons-jexl/20040901.055348/commons-jexl-20040901.055348.pom. Retur
n code is: 409 , ReasonPhrase:Conflict. -> [Help 1]

This is saying that the artifact commons-jexl:commons-jexl:jar:20040901.055348 cannot be found in the repository http://maven00.vm.searshc.com:8080/artifactory/repo.
I checked Maven Central and the artifact is there, you can see it at this URL: http://central.maven.org/maven2/commons-jexl/commons-jexl/20040901.055348/

I suspect that the repository is local to your environment - I don't have access to it. I haven't worked with Artifactory, but I suspect that it works much the same way as Nexus and allows you to configure a repository proxy - in other words, one should be able to set up Artifactory such that it pulls things from Maven Central automatically. You need to talk with you Artifactory administrator and ask him or her if Maven Central has been so configured, and if not, if it could be. Some companies have rules about which artifact they will allow you to download from Maven Central, so perhaps this particular artifact has to be approved first and then you'll have access to it.

Alternatively, you can reconfigure the build to use Maven Central as an alternate repository. This will work only if your company's firewall permits such access. The final solution is to manually download the artifact from Maven Central and install it in you local repository. Be aware that if you company has rules about this that doing so without prior approval could be a fireable offense.

Of course, the final possibility is that the 409 status code hints that the artifact might be corrupt and thus cannot be downloaded. If that is the case, you have to contact your Artifactory administrator to get this fixed.

So in conclusion: tell your Artifactory administrator, he or she should be able to help you solve this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic