]> source.dussan.org Git - archiva.git/commitdiff
we do not need the EnhancedLocalRepositoryManager to avoid writing _maven.repositorie...
authorOlivier Lamy <olamy@apache.org>
Sat, 4 Aug 2012 06:55:35 +0000 (06:55 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 4 Aug 2012 06:55:35 +0000 (06:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1369268 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java

index 5021384132ade60a1917943b16861dd595894a14..023fe50ba1a01fd6dcf04ab3cc3999a3faa16003 100644 (file)
@@ -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 );