}
catch ( RepositoryStorageMetadataNotFoundException e )
{
- log.warn( "Missing or invalid POM for artifact:" + path + " (" + repoId + "); creating empty metadata" );
+ log.warn( "Missing or invalid POM for artifact:{} (repository:{}); creating empty metadata" , path, repoId );
versionMetadata = new ProjectVersionMetadata();
versionMetadata.setId( projectVersion );
}
catch ( RepositoryStorageMetadataInvalidException e )
{
- log.warn( "Error occurred resolving POM for artifact:" + path + "(" + repoId + "); message: " + e.getMessage() );
+ log.warn( "Error occurred resolving POM for artifact:{} (repository:{}); message: {}" , new Object[] { path, repoId, e.getMessage() } );
}
// read the metadata and update it if it is newer or doesn't exist
}
catch ( MetadataRepositoryException e )
{
- log.warn( "Error occurred persisting metadata for artifact: " + path + "(" + repoId + "); message: " + e.getMessage(), e );
+ log.warn( "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}" + e.getMessage(), new Object[] { path, repoId, e.getMessage() }, e );
repositorySession.revert();
}
catch ( RepositoryStorageRuntimeException e )
{
- log.warn( "Error occurred persisting metadata for artifact: " + path + "(" + repoId + "); message: " + e.getMessage(), e );
+ log.warn( "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}" + e.getMessage(), new Object[] { path, repoId, e.getMessage() }, e );
repositorySession.revert();
}
finally