}
private URLClassLoader createScriptClassloader(File scriptDir, Set<String> classpath) throws Exception {
ClassWorld w = new ClassWorld("zero", null);
w.newRealm("mojo", getClass().getClassLoader());
Strategy s = new SelfFirstStrategy(w.newRealm("scalaScript", null));
ClassRealm rScript = s.getRealm();
rScript.setParentClassLoader(getClass().getClassLoader());
//rScript.importFrom("mojo", MavenProject.class.getPackage().getName());
//rScript.importFrom("mojo", MavenSession.class.getPackage().getName());
//rScript.importFrom("mojo", Log.class.getPackage().getName());
rScript.importFrom("mojo", "org.apache.maven");