rrezartprebreza/spring-boot-skills / skills/spring-boot-3/multi-module-maven
multi-module-maven
VerifiedUse when working in a multi-module Maven project. Covers parent POM conventions, shared dependency management, inter-module rules, and build ordering.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.5 KB |
| agents/openai.yaml | config | 202 B |
| examples/bad-parent-pom.xml | config | 2.0 KB |
| examples/good-parent-pom.xml | config | 2.1 KB |
| templates/parent-pom.xml | config | 4.4 KB |
examples/bad-parent-pom.xml
View on GitHub<!-- BAD — every common multi-module Maven mistake -->
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.16</version>
</parent>
<groupId>com.example</groupId>
<artifactId>order-system</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>domain</module>
<module>application</module>
<module>infrastructure</module>
<module>web</module>
</modules>
<!-- BAD: <dependencies> in parent — adds spring-boot-starter-web to ALL modules,
including domain which should have ZERO Spring dependencies -->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- BAD: spring-boot-maven-plugin in parent — tries to repackage ALL modules
as executable JARs, breaking library modules (domain, application) -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<!-- BAD: Missing <dependencyManagement> — each child module specifies its own versions,
leading to version mismatches and diamond dependency conflicts -->
<!-- BAD: No inter-module version management — children use hardcoded versions:
<dependency>
<groupId>com.example</groupId>
<artifactId>domain</artifactId>
<version>1.0.0-SNAPSHOT</version> instead of ${project.version}
</dependency>
-->
</project>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |