1 package org.apache.maven.plugin.resources.remote.it.support; 2 3 import org.apache.maven.it.VerificationException; 4 import org.apache.maven.it.Verifier; 5 6 import java.io.File; 7 import java.io.IOException; 8 import java.net.URISyntaxException; 9 10 public class BootstrapInstaller 11 { 12 13 private static boolean installed = false; 14 15 public static void install() 16 throws IOException, URISyntaxException, VerificationException 17 { 18 if ( !installed ) 19 { 20 File bootstrapDir = TestUtils.getTestDir( "bootstrap" ); 21 22 Verifier verifier = new Verifier( bootstrapDir.getAbsolutePath() ); 23 24 verifier.executeGoal( "deploy" ); 25 26 verifier.verifyErrorFreeLog(); 27 verifier.resetStreams(); 28 29 installed = true; 30 } 31 } 32 33 }