public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( "Exporting from filesystem resources to REST root URI " + restRootURI); ResourceExporter exporter = createExporter(); exporter.exportResources(restRootURI); } catch (Exception e) { String message = "Failed to export from filesystem resources to REST root URI " + restRootURI; getLog().warn(message); throw new MojoExecutionException(message, e); } }