archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1369268 - /archiva/trunk/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java
Date Sat, 04 Aug 2012 06:55:35 GMT
Author: olamy
Date: Sat Aug  4 06:55:35 2012
New Revision: 1369268

URL: http://svn.apache.org/viewvc?rev=1369268&view=rev
Log:
we do not need the EnhancedLocalRepositoryManager to avoid writing _maven.repositories file

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

Modified: archiva/trunk/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java?rev=1369268&r1=1369267&r2=1369268&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java
(original)
+++ archiva/trunk/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/Maven3DependencyTreeBuilder.java
Sat Aug  4 06:55:35 2012
@@ -54,12 +54,12 @@ import org.sonatype.aether.impl.Artifact
 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 );



Mime
View raw message