From 449eeb5159394f795f5e984de7a336ec1138fd75 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:45:54 +0000 Subject: [PATCH 1/2] Bump org.apache.maven.plugins:maven-plugins from 42 to 43 Bumps [org.apache.maven.plugins:maven-plugins](https://github.com/apache/maven-parent) from 42 to 43. - [Release notes](https://github.com/apache/maven-parent/releases) - [Commits](https://github.com/apache/maven-parent/commits) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-plugins dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e287447..ac7b56c 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ under the License. org.apache.maven.plugins maven-plugins - 42 + 43 From 86050313248c1de97ba8986d25692b7dce62fa29 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Fri, 7 Feb 2025 18:55:44 +0100 Subject: [PATCH 2/2] fix checkstyle and its --- src/it/no-main-artifact-1/pom.xml | 3 +++ src/it/no-main-artifact-2/pom.xml | 3 +++ .../org/apache/maven/plugins/deploy/DeployFileMojo.java | 1 + .../java/org/apache/maven/plugins/deploy/DeployMojo.java | 6 +++++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/it/no-main-artifact-1/pom.xml b/src/it/no-main-artifact-1/pom.xml index 8ad0718..1366f8e 100644 --- a/src/it/no-main-artifact-1/pom.xml +++ b/src/it/no-main-artifact-1/pom.xml @@ -86,6 +86,9 @@ under the License. org.apache.maven.plugins maven-install-plugin @mavenInstallPluginVersion@ + + true + org.apache.maven.plugins diff --git a/src/it/no-main-artifact-2/pom.xml b/src/it/no-main-artifact-2/pom.xml index dbeb7a7..e48a982 100644 --- a/src/it/no-main-artifact-2/pom.xml +++ b/src/it/no-main-artifact-2/pom.xml @@ -85,6 +85,9 @@ under the License. org.apache.maven.plugins maven-install-plugin @mavenInstallPluginVersion@ + + true + org.apache.maven.plugins diff --git a/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java b/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java index 029128c..af5efd5 100644 --- a/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java +++ b/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java @@ -232,6 +232,7 @@ private Path readingPomFromJarFile() { return null; } + @SuppressWarnings("checkstyle:MethodLength") public void execute() throws MojoException { if (Boolean.parseBoolean(skip) || ("releases".equals(skip) && !session.isVersionSnapshot(version)) diff --git a/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java b/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java index 61c0b26..c0831bb 100644 --- a/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java +++ b/src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java @@ -19,7 +19,11 @@ package org.apache.maven.plugins.deploy; import java.nio.file.Files; -import java.util.*; +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern;