Another way to deal with this issue is to not release slf4j-api-1.7.XX-tests.jar jar at all into maven. I don't think it has a purpose outside of building and verifying slf4j.