You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/10/29 16:15:13 UTC
(maven-reporting-impl) 01/01: [MSHARED-1328] Consistently log when skipping report goal execution
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch MSHARED-1328
in repository https://gitbox.apache.org/repos/asf/maven-reporting-impl.git
commit 20e7cf4aef4c4b8817e0db3584405a4219358ce6
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Oct 29 17:15:01 2023 +0100
[MSHARED-1328] Consistently log when skipping report goal execution
This closes #27
---
src/main/java/org/apache/maven/reporting/AbstractMavenReport.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
index 8b3193b..852ca69 100644
--- a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
+++ b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
@@ -189,6 +189,8 @@ public abstract class AbstractMavenReport extends AbstractMojo implements MavenM
public final void execute() throws MojoExecutionException {
try {
if (!canGenerateReport()) {
+ String reportMojoInfo = mojoExecution.getPlugin().getId() + ":" + mojoExecution.getGoal();
+ getLog().info("Skipping " + reportMojoInfo + " report");
return;
}
} catch (MavenReportException e) {