for ( File file : files )
{
try
{
ResourceImpl resource = ( ResourceImpl ) dmh.createResource( file.toURI().toURL() );
if ( resource != null )
{
repository.addResource( resource );
doTemplate( mavenRepoUri, file, resource );
log.info( "Adding resource: " + file );