aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-cli
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2014-07-30 12:04:08 +1000
committerBrett Porter <brett@apache.org>2014-07-30 12:05:01 +1000
commit0f2467eb86f26393b82ee7fd753cba6468c2c008 (patch)
tree674367fd58fc227be3f64a98eae72f083e5a3841 /archiva-cli
parent75c63ff2eb458cd0f4ca971035789db62e5c92c3 (diff)
downloadarchiva-0f2467eb86f26393b82ee7fd753cba6468c2c008.tar.gz
archiva-0f2467eb86f26393b82ee7fd753cba6468c2c008.zip
remove wagon manager hack
Should no longer be needed since moving to Maven 3 project API
Diffstat (limited to 'archiva-cli')
-rw-r--r--archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
index ae433878d..102f4bfe8 100644
--- a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
+++ b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java
@@ -34,7 +34,6 @@ import org.apache.archiva.repository.scanner.RepositoryScanStatistics;
import org.apache.archiva.repository.scanner.RepositoryScanner;
import org.apache.archiva.repository.scanner.RepositoryScannerException;
import org.apache.commons.lang.StringUtils;
-import org.apache.maven.artifact.manager.WagonManager;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.io.File;
@@ -153,12 +152,6 @@ public class ArchivaCli
private void doScan( String path, String[] consumers )
throws ConsumerException, MalformedURLException, PlexusSisuBridgeException
{
- // hack around poorly configurable project builder by pointing all repositories back at this location to be self
- // contained
-
- WagonManager wagonManager = lookup( WagonManager.class );
- wagonManager.addMirror( "internal", "*", new File( path ).toURL().toExternalForm() );
-
ManagedRepository repo = new ManagedRepository();
repo.setId( "cliRepo" );
repo.setName( "Archiva CLI Provided Repo" );