getLog().info( "OBR update disabled (enable with -DobrRepository)" );
return;
}
Log log = getLog();
ObrUpdate update;
try
{
String mavenRepository = localRepository.getBasedir();
URI repositoryXml = ObrUtils.findRepositoryXml( mavenRepository, obrRepository );
URI obrXmlFile = ObrUtils.findObrXml( project.getResources() );
URI bundleJar = ObrUtils.findBundleJar( localRepository, project.getArtifact() );
Config userConfig = new Config();
update = new ObrUpdate( repositoryXml, obrXmlFile, project, bundleJar, mavenRepository, userConfig, log );
update.updateRepository();
}
catch ( Exception e )
{
log.warn( "Exception while updating local OBR: " + e.getLocalizedMessage(), e );
}