MavenDomPlugin (MavenDomProjectModel model) { MavenDomPlugin plugin = findCompilerPlugin(model); if (plugin != null) return plugin; plugin = model.getBuild().getPlugins().addPlugin(); plugin.getGroupId().setValue("org.apache.maven.plugins"); plugin.getArtifactId().setValue("maven-compiler-plugin"); return plugin; }