ENTESB-2124 update replacement pom, and fix file copying and filtering