public class IndexViewerMojo extends ApplicationLoader {
Log log = LogFactory.getLog(IndexViewerMojo.class);
public void execute() throws MojoExecutionException {
Application application = this.loadApplication();
LuceneConfiguration configuration = application.<LuceneConfiguration> getInstance(LuceneConfiguration.class);
try {
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("java -jar lukeall.jar -index " + configuration.getIndexLocation());
process.waitFor();
log.debug("****************Exit Value**************" + process.exitValue());