bug fix for copy-resources

a bug fixed for copy-resources mojo of maven-resources-plugin