File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
src/main/java/org/apache/maven/plugins/dependency Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 2020
2121import java .util .ArrayList ;
2222import java .util .List ;
23- import java .util .Locale ;
2423
2524import org .apache .maven .plugin .AbstractMojo ;
2625import org .apache .maven .plugin .MojoExecutionException ;
@@ -62,14 +61,8 @@ private ArrayList<String> collectAncestors() {
6261
6362 MavenProject currentAncestor = project .getParent ();
6463 while (currentAncestor != null ) {
65- final String gav = String .format (
66- Locale .US ,
67- "%s:%s:%s" ,
68- currentAncestor .getGroupId (),
69- currentAncestor .getArtifactId (),
70- currentAncestor .getVersion ());
71-
72- ancestors .add (gav );
64+ ancestors .add (currentAncestor .getGroupId () + ":" + currentAncestor .getArtifactId () + ":"
65+ + currentAncestor .getVersion ());
7366
7467 currentAncestor = currentAncestor .getParent ();
7568 }
You can’t perform that action at this time.
0 commit comments