System.out.println( "Running Maven... " );
System.out.println( cli.toString() );
int exitCode = CommandLineUtils.executeCommandLine( cli,
new WriterStreamConsumer( new PrintWriter( System.out ) ),
new WriterStreamConsumer( new PrintWriter( System.err ) ) );
if ( exitCode != 0 )
{
throw new Exception( "Error executing Maven: exit code = " + exitCode );
}