MavenDomPlugin (MavenDomProjectModel model) { MavenDomPlugins plugins = model.getBuild().getPlugins(); for (MavenDomPlugin plugin : plugins.getPlugins()) { if ("org.apache.maven.plugins".equals(plugin.getGroupId().getStringValue()) && "maven-compiler-plugin".equals(plugin.getArtifactId().getStringValue())) { return plugin; } } return null; }