From: Olivier Lamy Date: Sat, 4 Aug 2012 06:55:35 +0000 (+0000) Subject: we do not need the EnhancedLocalRepositoryManager to avoid writing _maven.repositorie... X-Git-Tag: archiva-1.4-M3~465 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55376abd21e65552b29d9f213f153c67e5637f98;p=archiva.git we do not need the EnhancedLocalRepositoryManager to avoid writing _maven.repositories file git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1369268 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java index 502138413..023fe50ba 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java @@ -54,12 +54,12 @@ import org.sonatype.aether.impl.ArtifactDescriptorReader; import org.sonatype.aether.impl.VersionRangeResolver; import org.sonatype.aether.impl.VersionResolver; import org.sonatype.aether.impl.internal.DefaultServiceLocator; +import org.sonatype.aether.impl.internal.SimpleLocalRepositoryManager; import org.sonatype.aether.repository.LocalRepository; import org.sonatype.aether.spi.connector.RepositoryConnectorFactory; import org.sonatype.aether.util.artifact.DefaultArtifact; import org.sonatype.aether.util.graph.selector.AndDependencySelector; import org.sonatype.aether.util.graph.selector.ExclusionDependencySelector; -import org.sonatype.aether.util.graph.selector.OptionalDependencySelector; import org.springframework.stereotype.Service; import javax.annotation.PostConstruct; @@ -229,7 +229,8 @@ public class Maven3DependencyTreeBuilder session.setDependencySelector( depFilter ); LocalRepository localRepo = new LocalRepository( localRepoDir ); - session.setLocalRepositoryManager( system.newLocalRepositoryManager( localRepo ) ); + session.setLocalRepositoryManager( + new SimpleLocalRepositoryManager( localRepoDir ) );// system.newLocalRepositoryManager( localRepo ) ); //session.setTransferListener( ); //session.setRepositoryListener( n );