public MavenExecutionResult execute( MavenRequest mavenRequest ) throws MavenEmbedderException {
ClassLoader original = Thread.currentThread().getContextClassLoader();
try {
Maven maven = lookup( Maven.class );
Thread.currentThread().setContextClassLoader( this.plexusContainer.getContainerRealm() );
return maven.execute( buildMavenExecutionRequest( mavenRequest ) );
}
catch ( MavenEmbedderException e )
{
throw new MavenEmbedderException(e.getMessage(),e);
}