private void modifyCompilerPlugin()
{
Dependency compilerDependency = DependencyBuilder.create()
.setGroupId("org.apache.maven.plugins")
.setArtifactId("maven-compiler-plugin");
MavenPluginFacet pluginFacet = project.getFacet(MavenPluginFacet.class);
MavenPlugin compiler = pluginFacet.getPlugin(compilerDependency);
Configuration config = compiler.getConfig();
if (!config.hasConfigurationElement("proc"))
{
ConfigurationElement proc = ConfigurationBuilder.create().createConfigurationElement("proc").setText("none");
config.addConfigurationElement(proc);
}
pluginFacet.updatePlugin(compiler);
}