Skip to content

NullPointerException when using -rf in multi-module project #93

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

Closed
mmatz-ccri opened this issue May 21, 2021 · 1 comment
Closed

NullPointerException when using -rf in multi-module project #93

mmatz-ccri opened this issue May 21, 2021 · 1 comment

Comments

@mmatz-ccri
Copy link

I have a multi-module maven project and when I use mvn clean install -rf <some-module> the scoverage plugin always throws aNullPointerException, unless I'm resuming from the last module in the build.

Caused by: java.lang.NullPointerException
    at org.scoverage.plugin.SCoverageReportMojo.rebase (SCoverageReportMojo.java:558)
    at org.scoverage.plugin.SCoverageReportMojo.generateAggregatedReports (SCoverageReportMojo.java:504)
    at org.scoverage.plugin.SCoverageReportMojo.generate (SCoverageReportMojo.java:229)
    at org.scoverage.plugin.SCoverageReportMojo.execute (SCoverageReportMojo.java:384)

This exception occurs after all of the modules have been built.

It looks like the issue is caused by there being no topLevelModule.

@jozic
Copy link
Collaborator

jozic commented Dec 28, 2023

@mmatz-ccri
i believe this particular issue is addressed by #104, so I'm closing it.
Please re-test with 2.0.1-SNAPSHOT (or 2.0.1 when released) and reopen if it still throwing a aNullPointerException

@jozic jozic closed this as completed Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants