In Maven, you can have compile-time dependencies and test dependencies. This is a feature I love, and the M2Eclipse plugin makes this available in Eclipse,
Eclipse Photon finally added this feature, with m2e support for it.