code: public void execute() throws MojoExecutionException {
  
  		if (this.resources.size() == 0) {
  			throw new MojoExecutionException("No resources configured");
  		}
  
  		// Prefered to count error instead of failing on the first one.
  		int errCount = 0;
  
  		// Iterate on all configured resources.
  		for (final XPathResource r : this.resources) {
  			try {
  				classBytesToBWJavaXPath(r);
  			} catch (Exception e) {
  				super.getLog().error(e);
  				errCount++;
  			}
  		}
  		if (errCount > 0) {
  			throw new MojoExecutionException("There was " + errCount
  					+ " error(s) during goal execution, check above.");
  		}
  	}
docs: MOJO execution method.