How to find out which maven artifact/plugin is requesting for the download of a no longer available dependency -


i compiling "old" open sourced project, while encountered problem:

[error] failed execute goal on project .... can not transfer artifact x:y:z ... 

the artifact x:y:z not found repositories defined in project pom.xml.

after looked effective pom.xml, not find references x:y:z.

how can find out artifact or plugin requesting missing dependency without analyze transitive dependencies?

if use eclipe - can see dep tree this: open pom.xml , tick "dependency hierarchy" tab.

also can try use mvn dependency:tree not totally sure work if of deps missing.

update: seems both eclipse , dependency:tree require sucessfull artifact resolution work whch not case.

in case guess you're left 3 opttions:

  1. clean cache (wipe under ~/.m2/repository), run build , occurence search (search "problematic-artifact-id") on files in ~/.m2/repository. 1 or couple of artifacts should reference problematic artifact in pom. should give hint.

  2. clean cache , run build -x switch. put maven in verbosity mode , should find hints might reference dead dependency (point attention on download order, artifacts got resolved, check dependencies of resolved artifacts in poms)

  3. dumb hell - comment/uncomment deps in pom , see causes mentioned error.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -