Tailor the resume and cover letter to the job listing. If you cut up both of them like a ransom letter you should be able to draw lines between sentences in the job application and sentences in your application.
Often HR makes mindless mistakes that make it impossible to satisfy the requirements (e.g. they want 12 years of experience in a framework that's been around 12 months) but when this happens the hiring manager starts getting pissed at HR. The more senior you are the easier it is to bypass unreasonable requirements.