New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven :report-aggregate support transitive reactor deps #1241
Comments
Suggested pull request, however not sure I understand the original intention of this:
The project in the reactor will always have a fixed version, no range. Are there cases where a dependency should be covered from within the reactor but pointing to a version different from the reactor? E.g. consider the following case:
Not sure if my analysis is correct and whether this makes sense. Does it really make sense to try to report coverage if the instrumented classes and the source have different versions? |
It’s a very useful feature - use of maven’s reactor to collect all dependencies of multi-modules project. It’s hard to manually research and add all modules dependencies to the aggregation project (there are possible hundreds of deps). Jacoco must collect all dependencies from listed modules by default without any hacks or workaround like #1251 (comment) |
Hi, |
Yes. It'd better to use maven's reactor to collect all dependencies of multi-modules project instead of creating a new module to hold all the dependent-modules. Because we have a very large project with 30+ modules. It is very inconvenient. |
Scenario
Current Behaviour
Assume we have the following project structure:
Assume a test in
it
that covers a class xyz/Util.java in commons, the transitive dependency to this class isit->service->commons
, then the coverage report init
will have no coverage for xyz/Util.java.Testcase here: 2c58ab3
Wanted Behaviour
An aggregated coverage report should also resolve transitive dependencies within the reactor. Currently only 1 level of dependencies for each project is resolved against the reactor (MavenProject#getDependencies instead of MavenProject#getArtifacts)
Possible Workarounds
A workaround would be:
PR #1242
The text was updated successfully, but these errors were encountered: