Skip to content

Commit

Permalink
Merge pull request #1026 from scottkurz/1024-fix
Browse files Browse the repository at this point in the history
Get plugins from pluginMgmt if not in project
  • Loading branch information
cherylking authored Nov 17, 2020
2 parents 38b7fca + 6a359e4 commit 75a9e41
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ protected void runMojo(String groupId, String artifactId, String goal) throws Mo
*/
protected Plugin getPlugin(String groupId, String artifactId) {
Plugin plugin = project.getPlugin(groupId + ":" + artifactId);
if (plugin == null) {
plugin = getPluginFromPluginManagement(groupId, artifactId);
}
if (plugin == null) {
plugin = plugin(groupId(groupId), artifactId(artifactId), version("RELEASE"));
}
Expand Down

0 comments on commit 75a9e41

Please sign in to comment.