Maven 2 & 3

Direct dependencies with scope == provided will not have their transitive dependencies resolved for compiling and testing