maven-build-management
Manage multi-module Maven builds: dependencies, plugins, profiles, reproducible builds
来源信息
- 仓库
- Hack23/cia
- 最近来源活动
- 2026年2月1日 00:05
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 241
- Forks
- 56
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- maven-build-management
- description
- Manage multi-module Maven builds: dependencies, plugins, profiles, reproducible builds
# 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
在 GitHub 查看