System.setProperty( "org.apache.maven.archetype.repository.directory",
getTestPath( "target/test-classes/repositories/central" ) );
proxyServer = new Server( 0 );
WebAppContext webappProxy = new WebAppContext();
webappProxy.setContextPath( "/" );
webappProxy.setWar( "target/wars/archetype-proxy.war" );
proxyServer.setHandler( webappProxy );
proxyServer.start();
proxyPort = proxyServer.getConnectors()[0].getLocalPort();
server = new Server( 0 );
WebAppContext webapp = new WebAppContext();
webapp.setContextPath( "/repo" );
webapp.setWar( "target/wars/archetype-repository.war" );
server.setHandler( webapp );
server.start();
port = server.getConnectors()[0].getLocalPort();