class MainInstrumentMojo extends AbstractInstrumentMojo {

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        Log log = getLog();

        File mainOutputFolder = new File(getProject().getBuild().getOutputDirectory());
        if (!mainOutputFolder.isDirectory()) {
            log.warn("Main folder doesn't exist -- nothing to instrument");
            return;
        }
        
        List<String> classpath;
        try {
            classpath = getProject().getCompileClasspathElements();
        } catch (DependencyResolutionRequiredException ex) {
            throw new MojoExecutionException("Dependency resolution problem", ex);
        }

        log.debug("Processing main output folder ... ");
        instrumentPath(log, classpath, mainOutputFolder);
    }

}