in src/main/java/org/apache/nifi/NarMojo.java [1012:1019]
protected void copyFile(File artifact, File destFile) throws MojoExecutionException {
try {
getLog().info("Copying " + (this.outputAbsoluteArtifactFilename ? artifact.getAbsolutePath() : artifact.getName()) + " to " + destFile);
FileUtils.copyFile(artifact, destFile);
} catch (Exception e) {
throw new MojoExecutionException("Error copying artifact from " + artifact + " to " + destFile, e);
}
}