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;
}