How to set Maven dependency for all org.springframework
?
I mean, how to do it in couple lines,instead of providing dependency for every module,e.g.:
There was such an all-in-one module in Spring 2.x, however it didn't survive the module refactoring happened in Spring 3.x. So, the answer is 'No'.
Create module with packaging pom
and list all Spring dependencies there. Call it something like SpringDependencies
.
Then in each of your modules, depend on SpringDependencies
module. That will transitively pull all Spring dependencies.