# Java Maven

> Master Apache Maven - POM configuration, plugins, lifecycle, dependency management

- **Type:** Skill
- **Install:** `agentstack add skill-linlannet-agent-skills-java-maven`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [linlannet](https://agentstack.voostack.com/s/linlannet)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [linlannet](https://github.com/linlannet)
- **Source:** https://github.com/linlannet/agent-skills/tree/main/skills/java-maven

## Install

```sh
agentstack add skill-linlannet-agent-skills-java-maven
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Java Maven 技能

掌握Apache Maven用于Java项目构建和依赖管理。

## 概述

此技能涵盖Maven配置，包括POM结构、生命周期阶段、插件配置、使用BOM管理依赖和多模块项目。

## 何时使用此技能

当您需要：
- 配置Maven POM文件
- 使用BOM管理依赖
- 设置构建插件
- 创建多模块项目
- 排查构建问题

## 快速参考

```xml

    4.0.0

    com.example
    my-app
    1.0.0-SNAPSHOT

    
        21
        ${java.version}
        ${java.version}
    

    
        
            
                org.springframework.boot
                spring-boot-dependencies
                3.2.1
                pom
                import
            
        
    

    
        
            
                org.apache.maven.plugins
                maven-enforcer-plugin
                3.4.1
            
        
    

```

## 生命周期阶段

```
validate → compile → test → package → verify → install → deploy
```

## 有用的命令

```bash
mvn dependency:tree                    # 查看依赖
mvn dependency:analyze                 # 查找未使用/未声明的依赖
mvn versions:display-dependency-updates  # 检查更新
mvn help:effective-pom                 # 查看有效POM
mvn -B verify                          # 批处理模式构建
```

## 故障排除

| 问题 | 解决方案 |
|------|----------|
| 依赖未找到 | 检查仓库、版本 |
| 版本冲突 | 使用BOM或enforcer |
| 构建OOM | 设置 MAVEN_OPTS=-Xmx1g |

## 使用

```
Skill("java-maven")
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [linlannet](https://github.com/linlannet)
- **Source:** [linlannet/agent-skills](https://github.com/linlannet/agent-skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-linlannet-agent-skills-java-maven
- Seller: https://agentstack.voostack.com/s/linlannet
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
