remove wagon manager hack

Should no longer be needed since moving to Maven 3 project API
This commit is contained in:
Brett Porter 2014-07-30 12:04:08 +10:00
parent 75c63ff2eb
commit 0f2467eb86
1 changed files with 0 additions and 7 deletions

View File

@ -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" );