In order to support different container implementations (CDI, Spring, ...) main modules must not depend on any Spring artifact. Suggested by @bessemHmidi