This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git
commit 97d7cb8d23978413db0bab12355fd8c725497800 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Mon Nov 16 22:35:02 2026 +0000 Replace remaining StringUtils and Commons calls with the JDK --- .../apache/maven/reporting/exec/DefaultMavenReportExecutor.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 0a4901e..4a07431 100644 --- a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java +++ b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java @@ -51,7 +51,6 @@ import org.apache.maven.plugin.version.PluginVersionResult; import org.apache.maven.project.MavenProject; import org.apache.maven.reporting.MavenReport; import org.codehaus.plexus.configuration.PlexusConfiguration; -import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.xml.Xpp3Dom; import org.codehaus.plexus.util.xml.Xpp3DomUtils; import org.slf4j.Logger; @@ -355,10 +354,12 @@ public class DefaultMavenReportExecutor implements MavenReportExecutor { String reportDescription = pluginDescriptor.getArtifactId() + ":" + report.getGoal() + " report"; String execution; - if (StringUtils.isNotEmpty(mojoDescriptor.getExecutePhase())) { + if (mojoDescriptor.getExecutePhase() != null + && !mojoDescriptor.getExecutePhase().isEmpty()) { // forked phase execution = "'" - + (StringUtils.isEmpty(mojoDescriptor.getExecuteLifecycle()) + + (mojoDescriptor.getExecuteLifecycle() == null + || mojoDescriptor.getExecuteLifecycle().isEmpty() ? "" : ('[' + mojoDescriptor.getExecuteLifecycle() + ']')) + mojoDescriptor.getExecutePhase() + "' forked phase execution";
