bw-javaxpath-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/javaxpath/XPathResourceBuilderMojo.java
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.");
		}
	}
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.");
		}
	}
MOJO execution method.