# Maven Build Management

> Maven Build Management Skill

- Skill: `hack23/maven-build-management` (Agent Skill)
- Install (CLI): `npx skillmds@latest add hack23/maven-build-management`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hack23/maven-build-management/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Hack23 (https://skillmd.com/u/hack23)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/hack23/maven-build-management

---


# Maven Build Management Skill

## Purpose
Manage CIA platform's multi-module Maven build with proper dependency management and plugin configuration.

## When to Use
- ✅ Adding new modules
- ✅ Managing dependencies
- ✅ Configuring build plugins
- ✅ Creating build profiles

## Multi-Module Structure
```xml
<project>
    <modules>
        <module>parent-pom</module>
        <module>model.common.api</module>
        <module>service.api</module>
        <module>service.impl</module>
        <module>citizen-intelligence-agency</module>
    </modules>
</project>
```

## Dependency Management
```xml
<!-- parent-pom/pom.xml -->
<properties>
    <spring.version>5.3.34</spring.version>
    <vaadin.version>8.27.4</vaadin.version>
</properties>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-framework-bom</artifactId>
            <version>${spring.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
```

## Build Profiles
```xml
<profiles>
    <profile>
        <id>production</id>
        <properties>
            <spring.profiles.active>production</spring.profiles.active>
        </properties>
    </profile>
</profiles>
```

## Build Commands
```bash
# Clean install all modules
mvn clean install

# Skip tests
mvn clean install -DskipTests

# Specific module
mvn clean install -pl citizen-intelligence-agency -am

# With profile
mvn clean install -Pproduction
```

## References
- Maven: https://maven.apache.org/
- pom.xml
