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);
((MavenPluginAdapter)compiler).setConfig(config);
}
pluginFacet.updatePlugin(compiler);
}