24
24
25
25
import java .util .List ;
26
26
import java .util .Set ;
27
- import java .util .stream .Collectors ;
28
27
29
28
import org .apache .maven .artifact .Artifact ;
30
29
import org .apache .maven .execution .BuildFailure ;
31
30
import org .apache .maven .execution .ExecutionEvent ;
32
31
import org .apache .maven .execution .MavenExecutionRequest ;
33
32
import org .apache .maven .execution .MavenSession ;
34
33
import org .apache .maven .internal .MultilineMessageHelper ;
34
+ import org .apache .maven .internal .impl .DefaultLifecycleRegistry ;
35
35
import org .apache .maven .lifecycle .LifecycleExecutionException ;
36
36
import org .apache .maven .lifecycle .LifecycleNotFoundException ;
37
37
import org .apache .maven .lifecycle .LifecyclePhaseNotFoundException ;
38
38
import org .apache .maven .lifecycle .MavenExecutionPlan ;
39
- import org .apache .maven .lifecycle .internal .DefaultLifecyclePluginAnalyzer ;
40
39
import org .apache .maven .lifecycle .internal .ExecutionEventCatapult ;
41
40
import org .apache .maven .lifecycle .internal .LifecycleDebugLogger ;
42
41
import org .apache .maven .lifecycle .internal .LifecycleExecutionPlanCalculator ;
@@ -139,7 +138,7 @@ public MavenExecutionPlan resolveBuildPlan(
139
138
}
140
139
}
141
140
142
- final String defaulModelId = DefaultLifecyclePluginAnalyzer . DEFAULTLIFECYCLEBINDINGS_MODELID ;
141
+ final String defaulModelId = DefaultLifecycleRegistry . DEFAULT_LIFECYCLE_MODELID ;
143
142
144
143
List <String > unversionedPlugins = executionPlan .getMojoExecutions ().stream ()
145
144
.map (MojoExecution ::getPlugin )
@@ -149,7 +148,7 @@ public MavenExecutionPlan resolveBuildPlan(
149
148
p .getLocation ("version" ).getSource ().getModelId ()))
150
149
.distinct ()
151
150
.map (Plugin ::getArtifactId ) // managed by us, groupId is always o.a.m.plugins
152
- .collect ( Collectors . toList () );
151
+ .toList ();
153
152
154
153
if (!unversionedPlugins .isEmpty ()) {
155
154
logger .warn ("Version not locked for default bindings plugins " + unversionedPlugins
0 commit comments