public class IndexBuilderMojo extends ApplicationLoader {
Log log = LogFactory.getLog(IndexBuilderMojo.class);
public void execute() throws MojoExecutionException {
Application application = this.loadApplication();
IndexBuilder indexBuilder = application.<IndexBuilder> getInstance(IndexBuilder.class);
indexBuilder.buildIndex();
}