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/11/04 14:55:45 UTC
(maven-reporting-exec) branch master updated: Fix formatting
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git
The following commit(s) were added to refs/heads/master by this push:
new d3c2afd Fix formatting
d3c2afd is described below
commit d3c2afd51fa15219b1288817a32bc0401a0813e0
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sat Nov 4 15:55:39 2023 +0100
Fix formatting
---
.../reporting/exec/DefaultMavenReportExecutor.java | 29 +++++++++++++++-------
.../maven/reporting/exec/MavenReportExecution.java | 3 ++-
2 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
index 24fdf30..c901dba 100644
--- a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
+++ b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
@@ -218,9 +218,11 @@ public class DefaultMavenReportExecutor implements MavenReportExecutor {
plugin.getVersion(),
buff);
} else if (!hasUserDefinedReports) {
- LOGGER.warn("Ignoring report plugin {}:{},"
- + " it does not contain any report goals: should be removed from reporting configuration in POM",
- plugin.getArtifactId(), plugin.getVersion());
+ LOGGER.warn(
+ "Ignoring report plugin {}:{},"
+ + " it does not contain any report goals: should be removed from reporting configuration in POM",
+ plugin.getArtifactId(),
+ plugin.getVersion());
}
return reports;
@@ -296,12 +298,16 @@ public class DefaultMavenReportExecutor implements MavenReportExecutor {
if (!isMavenReport(mojoExecution, pluginDescriptor)) {
if (userDefined) {
// reports were explicitly written in the POM
- LOGGER.warn("Ignoring {}:{}"
+ LOGGER.warn(
+ "Ignoring {}:{}"
+ " goal since it is not a report: should be removed from reporting configuration in POM",
- mojoExecution.getPlugin().getId(), report.getGoal());
+ mojoExecution.getPlugin().getId(),
+ report.getGoal());
} else {
- LOGGER.debug("Ignoring {}:{} goal since it is not a report",
- mojoExecution.getPlugin().getId(), report.getGoal());
+ LOGGER.debug(
+ "Ignoring {}:{} goal since it is not a report",
+ mojoExecution.getPlugin().getId(),
+ report.getGoal());
}
return null;
}
@@ -326,7 +332,11 @@ public class DefaultMavenReportExecutor implements MavenReportExecutor {
MavenReport mavenReport = getConfiguredMavenReport(mojoExecution, pluginDescriptor, mavenReportExecutorRequest);
MavenReportExecution mavenReportExecution = new MavenReportExecution(
- report.getGoal(), mojoExecution.getPlugin(), mavenReport, pluginDescriptor.getClassRealm(), userDefined);
+ report.getGoal(),
+ mojoExecution.getPlugin(),
+ mavenReport,
+ pluginDescriptor.getClassRealm(),
+ userDefined);
lifecycleExecutor.calculateForkedExecutions(mojoExecution, mavenReportExecutorRequest.getMavenSession());
@@ -416,7 +426,8 @@ public class DefaultMavenReportExecutor implements MavenReportExecutor {
if (LOGGER.isDebugEnabled()) {
if (mojoDescriptor != null && mojoDescriptor.getImplementationClass() != null) {
- LOGGER.debug("Class {} is {}a MavenReport",
+ LOGGER.debug(
+ "Class {} is {}a MavenReport",
mojoDescriptor.getImplementationClass().getName(),
isMavenReport ? "" : "NOT ");
}
diff --git a/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java b/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java
index a6e491e..5e71b00 100644
--- a/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java
+++ b/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java
@@ -55,7 +55,8 @@ public class MavenReportExecution {
private boolean userDefined;
- public MavenReportExecution(String goal, Plugin plugin, MavenReport mavenReport, ClassLoader classLoader, boolean userDefined) {
+ public MavenReportExecution(
+ String goal, Plugin plugin, MavenReport mavenReport, ClassLoader classLoader, boolean userDefined) {
this.goal = goal;
this.setPlugin(plugin);
this.mavenReport = mavenReport;