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-enforcer.git
The following commit(s) were added to refs/heads/master by this push:
new 8304a1d7 `PlexusStringUtils` Refaster recipes (#943)
8304a1d7 is described below
commit 8304a1d7f57a01dac945d8e58aa42ad5470a16d6
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Tue Nov 4 02:47:48 2025 +0100
`PlexusStringUtils` Refaster recipes (#943)
Co-authored-by: Moderne <[email protected]>
---
.../java/org/apache/maven/enforcer/rules/RequirePluginVersions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/enforcer-rules/src/main/java/org/apache/maven/enforcer/rules/RequirePluginVersions.java
b/enforcer-rules/src/main/java/org/apache/maven/enforcer/rules/RequirePluginVersions.java
index 5ba97591..417ce78a 100644
---
a/enforcer-rules/src/main/java/org/apache/maven/enforcer/rules/RequirePluginVersions.java
+++
b/enforcer-rules/src/main/java/org/apache/maven/enforcer/rules/RequirePluginVersions.java
@@ -610,7 +610,7 @@ public final class RequirePluginVersions extends
AbstractStandardEnforcerRule {
if (pluginsForLifecycle != null && !pluginsForLifecycle.isEmpty())
{
String pluginList[] = pluginsForLifecycle.split(",");
for (String plugin : pluginList) {
- plugin = StringUtils.strip(plugin);
+ plugin = plugin == null ? null : plugin.trim();
getLog().debug(" plugin = " + plugin);
String tokens[] = plugin.split(":");
getLog().debug(" GAV = " + Arrays.asList(tokens));