专业的编程技术博客社区

网站首页 > 博客文章 正文

intellij idea 创建多模块maven项目

baijin 2024-10-20 04:12:53 博客文章 305 ℃ 0 评论

引言

idea中创建多模块maven项目 和 eclipse不太一样。在idea中没有workspace的概念。

eclipse:一个workspace中有多个项目。

idea:一个工程中有多个模块。

模块关系

t_parent

t_service

t_web

创建父模块

new->project->Maven

next

next

finish

创建子模块t_service

new->module

next

next

finish

创建子模块t_web

next

next

finish

设置子模块之间的依赖关系

t_web依赖t_service,所以应该在t_web的pom.xml中添加依赖。

同理可创建其它模块。

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表