File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/e_gineering/maven/gitflowhelper Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public void afterProjectsRead(MavenSession session) throws MavenExecutionExcepti
80
80
for (MavenProject project : session .getProjects ()) {
81
81
List <Plugin > dropPlugins = new ArrayList <>();
82
82
83
- for (Plugin plugin : project .getBuildPlugins ()) {
83
+ for (Plugin plugin : project .getModel (). getBuild (). getPlugins ()) {
84
84
// Don't drop our plugin. Read it's config
85
85
if (plugin .getKey ().equals ("com.e-gineering:gitflow-helper-maven-plugin" )) {
86
86
pluginFound = true ;
@@ -189,7 +189,7 @@ public void afterProjectsRead(MavenSession session) throws MavenExecutionExcepti
189
189
// invoked goals for which could be mapped back to plugins in our project build.
190
190
// Goals invoked from the commandline which cannot be mapped back to our project, will get warnings, but should still execute.
191
191
// If someone is on 'master' and starts executing goals, we need to allow them to do that.
192
- project .getBuildPlugins ().removeAll (pluginsToDrop .get (project ));
192
+ project .getModel (). getBuild (). getPlugins ().removeAll (pluginsToDrop .get (project ));
193
193
}
194
194
}
195
195
}
You can’t perform that action at this time.
0 commit comments