S.Leske created MNG-5243: ---------------------------- Summary: If a transitive dependency is missing, the error message makes it very hard to find out where it comes from Key: MNG-5243 URL: https://jira.codehaus.org/browse/MNG-5243 Project: Maven 2 & 3 Issue Type: Bug Reporter: S.Leske Priority: Minor
If a transitive dependency cannot be resolved during the build, the build fails (so far obviously OK). However, the error message printed does not indicate where the dependency came from. It may have been pulled in via several layers of transitive dependencies, in that case it is very difficult to figure out how it got included. Example: Project dependencies are: A -> B -> C. Error message during build of A, if C is missing from the repo: {noformat} [...] [WARNING] The POM for dependency-bug-test:C:jar:1 is missing, no dependency information available [INFO] ------------------------------------------- [INFO] BUILD FAILURE [INFO] ------------------------------------------- [...] [ERROR] Failed to execute goal on project A: Could not resolve dependencies for project dependency-bug-test:A:jar:1: Failure to find dependency-bug-test:C:jar:1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] [...] {noformat} Note the error message gives no indication whatsoever that the missing C is required because B depends on it. With more complex dependencies, this makes tracking down the culprit very difficult. Also note that "mvn dependency:tree" does not help in this case, because it fails with the same unhelpful error :-(. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira