try
{
pluginRegistryFile.getParentFile().mkdirs();
fWriter = WriterFactory.newXmlWriter( pluginRegistryFile );
PluginRegistryXpp3Writer writer = new PluginRegistryXpp3Writer();
writer.write( fWriter, extractedUserRegistry );
}
catch ( IOException e )
{
getLog().warn( "Cannot rewrite user-level plugin-registry.xml with new plugin version of plugin: \'"
+ aGroupId + ":" + anArtifactId + "\'.", e );