[BZ-1058348] correctly locate pom.properties file in a webapp
(cherry picked from commit ed38d5fd1d156d503fe9c4203d737ef07935ccfd)