title: Maven: how to add a dependency as provided for runtime, but explicitly for test?
body: <p>In my current project that runs on a JBoss server it is required to add all dependencies as <code>provided</code>if they are provided by JBoss. However for my unit-tests I do need those libraries without the JBoss server providing them (i.E. javaee-api), but I cannot add the same dependency twice with different scopes.</p>
  
  <p>How can I add a dependency as <code>provided</code> for runtime, but as <code>test</code> for unit tests?</p>