[MRM-138] fix local repository setting

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@428696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-08-04 11:24:40 +00:00
parent 8a6d97d0fa
commit c39db4fd13
1 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,8 @@ public class DefaultConfiguredRepositoryFactory
public ArtifactRepository createLocalRepository( Configuration configuration )
{
ArtifactRepositoryLayout layout = (ArtifactRepositoryLayout) repositoryLayouts.get( "default" );
return repoFactory.createArtifactRepository( "local", configuration.getLocalRepository(), layout, null, null );
File localRepository = new File( configuration.getLocalRepository() );
localRepository.mkdirs();
return repoFactory.createArtifactRepository( "local", localRepository.toURI().toString(), layout, null, null );
}
}