[
https://jira.codehaus.org/browse/MNG-5243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
S.Leske updated MNG-5243:
-------------------------
Attachment: dependency-bug.tgz
Simple example to demonstrate the problem.
The archive contains three minimal POMs (A, B, C). Dependencies are A -> B -> C.
The included build.sh will build C, then B, then delete C from the local Maven
repo, then build A. Building A causes the described error message.
build.sh should run unmodified on Linux. Adapt accordingly on Windows.
> 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
> Attachments: dependency-bug.tgz
>
>
> 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