// buildProject( basedir, "", resolver, false );
// buildProject( basedir, "maven-artifact-manager", resolver );
bootstrapper.buildProject( new File( basedir ), true );
ModelReader mavenCoreModel = bootstrapper.getCachedModel( "org.apache.maven", "maven-core" );
File installation = new File( basedir, "bootstrap/target/installation" );
createInstallation( installation, mavenCoreModel );
// TODO: should just need assembly from basedir
runMaven( installation, new File( basedir ), new String[]{"clean", "install"} );
File mavenCoreDir = mavenCoreModel.getProjectFile().getParentFile();
runMaven( installation, mavenCoreDir, new String[]{"clean", "assembly:assembly"} );
String finalName = "maven-" + mavenCoreModel.getVersion();
File file = new File( mavenCoreDir, "target/" + finalName + "-bin.zip" );
File mavenHome = new File( prefix, finalName );
System.out.println( "Installing Maven in " + mavenHome );