diff --git a/maven-repository-core/src/main/java/org/apache/maven/repository/configuration/DefaultConfiguredRepositoryFactory.java b/maven-repository-core/src/main/java/org/apache/maven/repository/configuration/DefaultConfiguredRepositoryFactory.java index 54edb11e7..f8e503d33 100644 --- a/maven-repository-core/src/main/java/org/apache/maven/repository/configuration/DefaultConfiguredRepositoryFactory.java +++ b/maven-repository-core/src/main/java/org/apache/maven/repository/configuration/DefaultConfiguredRepositoryFactory.java @@ -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 ); } }