I have a maven based application, and it references certain libraries that are marked as provided by my application server, such as:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</verision>
<scope>provided</scope>
</dependency>
Now obviously my application server needs to provide version 2.5 of the servlet api. Are there any strategies for ensuring the correct version of the library is being provided the app server (hopefully deployment tests would discover this as well, but I'm hoping to prevent the mismatch in the first place).