add missing dependency to spring-headless & spring-legacy