getLog().error( e );
throw new MojoExecutionException( "Could not create the list of classpath elements.", e );
}
final ClassLoader cl = Thread.currentThread().getContextClassLoader();
final ClassLoader ncl = new Loader( classpathElements.toArray( new String[0] ), this.getClass().getClassLoader() );
Thread.currentThread().setContextClassLoader(ncl);
try {
executeWithClasspath( classpathElements );
} catch( MojoExecutionException e ) {
throw e;