class BuildHelperMojo extends AbstractMojo {

    public void execute() throws MojoExecutionException {
        Path source = toPath(sourceFile);
        Path target = toPath(targetFile);
        try {
            getLog().info("Copying " + source + " to " + target);
            executor.copyFile(source, target);
        } catch (IOException e) {
            throw new MojoExecutionException("Unable to copy " + source + " to " + target, e);
        }
    }

}