mirror of https://github.com/apache/archiva.git
[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:
parent
8a6d97d0fa
commit
c39db4fd13
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue