数据平台分层结构
DataPlatform-user
—-DataPlatform-user-repository 数据存储,提供存储数据的能力
—-DataPlatform-user-repository-interface 数据存储接口,对内、外提供接口
—-DataPlatform-user-model 数据模型
—-DataPlatform-user-dao 数据持久化
—-DataPlatform-user-cache 数据缓存
使用Maven分别构建每个模块
模块:DataPlatform-user-repository
模块:DataPlatform-user-repository-interface
模块:DataPlatform-user-model
模块:DataPlatform-user-dao
模块:DataPlatform-user-cache
与DataPlatform-user-repository-interface模块构建方式相同。
构建完成之后的整体结构:
使用Maven的继承与聚合的特性使这些个模块成为一个整体
构建父模块:
修改DataPlatform-user的pom文件
<modules>
<module>DataPlatform-user-repository-interface</module>
<module>DataPlatform-user-repository</module>
<module>DataPlatform-user-dao</module>
<module>DataPlatform-user-cache</module>
<module>DataPlatform-user-model</module>
</modules>
<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>
修改每个子模块的pom文件
<parent</