We have a complex maven dependency hierarchy whereby our individual web modules are held by a parent web module. The parent web module depend upon a service module which itself depend upon a dao module.
I want my users to authenticate from the web. I have therefore placed a spring security configuration file in the web module.
The issue I have is that the jdbc-user-service needs a datasource and I can't just import the spring config file from the dao module from my web.xml: it is not clean nor even feasible as I would need for the web module to depend directly upon the dao module...
What is the best course of action?
Can I create as separate and independent spring security module with maven? I have not found any documentation of clue about that on the web.
Do I need to split the web-related spring security config from the authentication provider/manager/user service config?
Any clue or pointer welcome...