J

java-maven

by @pluginagentmarketplacev1.0.0
0.0(0)

Apache Maven 精通。掌握 POM 配置、插件管理、项目生命周期等核心概念,优化 Java 项目构建与管理流程。

JavaMavenBuild AutomationDependency ManagementProject ManagementGitHub
安装方式
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-maven
compare_arrows

Before / After 效果对比

1
使用前

过去,Java项目构建和依赖管理混乱,手动配置耗时且易错。版本冲突频繁,导致开发进度受阻,团队协作效率低下。

使用后

引入Maven后,项目结构标准化,依赖自动管理,构建流程清晰。版本冲突大幅减少,开发效率显著提升,团队协作更加顺畅。

description SKILL.md


name: java-maven description: Master Apache Maven - POM configuration, plugins, lifecycle, dependency management sasmp_version: "1.3.0" version: "3.0.0" bonded_agent: 05-java-build-tools bond_type: SECONDARY_BOND allowed-tools: Read, Write, Bash, Glob, Grep

Parameter Validation

parameters: project_type: type: string enum: [single, multi_module, library] description: Project structure

Java Maven Skill

Master Apache Maven for Java project builds and dependency management.

Overview

This skill covers Maven configuration including POM structure, lifecycle phases, plugin configuration, dependency management with BOMs, and multi-module projects.

When to Use This Skill

Use when you need to:

  • Configure Maven POM files
  • Manage dependencies with BOMs
  • Set up build plugins
  • Create multi-module projects
  • Troubleshoot build issues

Quick Reference

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.example</groupId>
    <artifactId>my-app</artifactId>
    <version>1.0.0-SNAPSHOT</version>

    <properties>
        <java.version>21</java.version>
        <maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>3.2.1</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>3.4.1</version>
            </plugin>
        </plugins>
    </build>
</project>

Lifecycle Phases

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

Useful Commands

mvn dependency:tree                    # View dependencies
mvn dependency:analyze                 # Find unused/undeclared
mvn versions:display-dependency-updates  # Check updates
mvn help:effective-pom                 # View effective POM
mvn -B verify                          # Batch mode build

Troubleshooting

ProblemSolution
Dependency not foundCheck repository, version
Version conflictUse BOM or enforcer
Build OOMSet MAVEN_OPTS=-Xmx1g

Usage

Skill("java-maven")

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例1 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年3月16日