From 55376abd21e65552b29d9f213f153c67e5637f98 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sat, 4 Aug 2012 06:55:35 +0000 Subject: [PATCH] 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 --- .../dependency/tree/maven2/Maven3DependencyTreeBuilder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); -- 2.39.5