From 50a8ee7c13598d7f33f9f6d4d3c906fe8768279d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Jun 2025 06:21:03 +0000 Subject: [PATCH] Bump org.apache.maven.plugins:maven-plugins from 41 to 45 Bumps [org.apache.maven.plugins:maven-plugins](https://github.com/apache/maven-parent) from 41 to 45. - [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-version: '45' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pom.xml | 3 ++- .../plugins/source/SourceJarMojoTest.java | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 8c03e19..6df26ca 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ under the License. org.apache.maven.plugins maven-plugins - 41 + 45 @@ -122,6 +122,7 @@ under the License. org.apache.maven.plugin-tools maven-plugin-annotations + ${version.maven-plugin-tools} provided diff --git a/src/test/java/org/apache/maven/plugins/source/SourceJarMojoTest.java b/src/test/java/org/apache/maven/plugins/source/SourceJarMojoTest.java index d585f2f..ac8f02a 100644 --- a/src/test/java/org/apache/maven/plugins/source/SourceJarMojoTest.java +++ b/src/test/java/org/apache/maven/plugins/source/SourceJarMojoTest.java @@ -29,15 +29,16 @@ protected String getGoal() { } private String[] addMavenDescriptor(String project, String[] listOfElements) { - final String METAINF = "META-INF/"; - final String MAVENSOURCE = "maven/source/maven-source-plugin-test-"; - String[] result = new String[listOfElements.length + 5]; - System.arraycopy(listOfElements, 0, result, 0, listOfElements.length); - result[listOfElements.length] = METAINF + "maven/"; - result[listOfElements.length + 1] = METAINF + "maven/source/"; - result[listOfElements.length + 2] = METAINF + MAVENSOURCE + project + "/"; - result[listOfElements.length + 3] = METAINF + MAVENSOURCE + project + "/pom.properties"; - result[listOfElements.length + 4] = METAINF + MAVENSOURCE + project + "/pom.xml"; + final String metainf = "META-INF/"; + final String mavensource = "maven/source/maven-source-plugin-test-"; + int length = listOfElements.length; + String[] result = new String[length + 5]; + System.arraycopy(listOfElements, 0, result, 0, length); + result[length] = metainf + "maven/"; + result[length + 1] = metainf + "maven/source/"; + result[length + 2] = metainf + mavensource + project + "/"; + result[length + 3] = metainf + mavensource + project + "/pom.properties"; + result[length + 4] = metainf + mavensource + project + "/pom.xml"; return result; }