in src/main/java/org/apache/maven/plugins/ear/EarMojo.java [683:696]
private void copyFile( File source, File target )
throws MavenFilteringException, IOException, MojoExecutionException
{
createParentIfNecessary( target );
if ( filtering && !isNonFilteredExtension( source.getName() ) )
{
mavenFileFilter.copyFile( source, target, true, getFilterWrappers(), encoding );
}
else
{
Files.copy( source.toPath(), target.toPath(), LinkOption.NOFOLLOW_LINKS,
StandardCopyOption.REPLACE_EXISTING );
}
}