multi-module-maven

Featured

Use when working in a multi-module Maven project. Covers parent POM conventions, shared dependency management, inter-module rules, build ordering, and Spring Boot 4 modular starter selection.

AI & Automation 260 stars 40 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
80
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Multi-Module Maven ## Typical Structure ``` my-app/ ├── pom.xml ← Parent POM (packaging = pom) ├── my-app-domain/ ← Pure Java domain — no Spring │ └── pom.xml ├── my-app-application/ ← Use cases — depends on domain │ └── pom.xml ├── my-app-infrastructure/ ← JPA, Redis, HTTP clients │ └── pom.xml └── my-app-web/ ← Spring Boot app, REST — depends on all above └── pom.xml ``` ## Parent POM ```xml <!-- pom.xml (parent) --> <project> <groupId>com.example</groupId> <artifactId>my-app</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>my-app-domain</module> <module>my-app-application</module> <module>my-app-infrastructure</module> <module>my-app-web</module> </modules> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>4.1.0</version> </parent> <!-- Shared versions — all modules inherit --> <properties> <java.version>21</java.version> <mapstruct.version>1.6.3</mapstruct.version> </properties> <!-- Dependency management — centralizes versions, NOT adding to classpath --> <dependencyManagement> <dependencies> <!-- Inter-module dependencies --> <dependency> <groupId>com.example</groupId> <artifactId>my-app-domain</artifactId> ...

Details

Author
rrezartprebreza
Repository
rrezartprebreza/spring-boot-skills
Created
4 months ago
Last Updated
4 days ago
Language
Java
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category