The maven dep only looks needed for head, so make it conditional.