mabrarov commented on a change in pull request #26:
URL: https://github.com/apache/maven-ear-plugin/pull/26#discussion_r546359981



##########
File path: src/main/java/org/apache/maven/plugins/ear/EarMojo.java
##########
@@ -480,9 +482,10 @@ private void copyModules( final JavaEEVersion 
javaEEVersion,
                     if ( sourceFile.lastModified() > 
destinationFile.lastModified() )
                     {
                         getLog().info( "Copying artifact [" + module + "] to 
[" + module.getUri() + "]" );
-                        FileUtils.copyFile( sourceFile, destinationFile );
-
-                        if ( module.changeManifestClasspath() )
+                        createParentIfNecessary( destinationFile );
+                        Files.copy( sourceFile.toPath(), 
destinationFile.toPath(),
+                            LinkOption.NOFOLLOW_LINKS, 
StandardCopyOption.REPLACE_EXISTING );
+                        if ( module.changeManifestClasspath() && ( skinnyWars 
|| module.getLibDir() == null ) )

Review comment:
       I opened [MEAR-293](https://issues.apache.org/jira/browse/MEAR-293) bug 
for this issue.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to