Skip to content

rrezartprebreza/spring-boot-skills / skills/spring-boot-4/multi-module-maven

multi-module-maven

Verified

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.

FileKindSize
SKILL.mdskill md8.4 KB
agents/openai.yamlconfig202 B
examples/bad-parent-pom.xmlconfig2.3 KB
examples/good-parent-pom.xmlconfig2.1 KB
templates/parent-pom.xmlconfig4.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>4.1.0</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-webmvc to ALL modules,
         including domain which should have ZERO Spring dependencies -->
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-webmvc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <!-- BAD: spring-boot-starter-classic — the Boot 4 transitional monolith starter drags in
             every module; pick focused spring-boot-starter-<technology> starters per module -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-classic</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>
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall