Maven dependency for whole org.springframework

前端 未结 8 1866
滥情空心
滥情空心 2020-12-28 09:50

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.:

相关标签:
8条回答
  • 2020-12-28 10:25

    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'.

    0 讨论(0)
  • 2020-12-28 10:28

    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.

    0 讨论(0)
提交回复
热议问题