public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( "Importing to filesystem resources from REST root URI " + restRootURI); ResourceImporter importer = createImporter(); importer.importResources(restRootURI); } catch (Exception e) { String message = "Failed to import to filesystem resources from REST root URI " + restRootURI; getLog().warn(message); throw new MojoExecutionException(message, e); } }