-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Description
一般的 bom 都是为了管理项目下所有模块的版本, 像 spring-framework-bom 一样, 我不想使用 hutool-all, 而是按照我的需求去添加具体的子模块, 我想使用 hutool-bom 去管理版本, 但是这样使用则不行:
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-bom</artifactId>
<version>${hutool.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
能否将 hutool-bom 修改一下, 用以下这种方式:
<dependencyManagement>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
<version>${project.version}</version>
</dependency>
...
</dependencyManagement>
这样我就不会在父模块中维护全部的子模块, 只需要使用 hutool-bom, 如果修改 hutool-bom 会影响其他用户, 也可添加 hutool-dependencies 来统一管理