Could you recommend me the way good way how to split web application and API+db stuff into two maven modules (with one parent) ? I am struggling mainly with Spring configuration.
<Parent project>
-> <web project> (contains spring mvc,servlets,jsps, controllers...)
-> <api project> (contains spring hibernate cfg, db connection, dao`s, db business rules etc...)
pom.xml
API project is packaged into jar and it`s dependency for WEB project (which produces war file for jetty)
Setup maven structure is easy but i wonder if it`s possible and wise split spring configuration across both modules. DO you know any sample which works in this way or you see any problem with this configuration ?