Skip to content

Commit

Permalink
better error when aggregate goal run directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Coles committed May 8, 2024
1 parent e6914dc commit 800a795
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ protected void executeReport(final Locale locale)
try {
final Collection<MavenProject> allProjects = findDependencies();

if (allProjects.isEmpty()) {
throw new IllegalStateException("No projects found. Did you call the aggregate goal directly? It must be bound to a lifecycle phase");
}

final ReportAggregator.Builder reportAggregationBuilder = ReportAggregator
.builder();

Expand Down

0 comments on commit 800a795

Please sign in to comment.