You can add the below code next to the <build> tag.
<resources> <resource> <directory>${src path which files to be ignored}</directory> <includes> <include>${file1 name}</include> <include>${file2 name}</include> </includes> <targetPath>${target path}</targetPath> </resource> </resources>