@pluginagentmarketplace/java-maven

Java Development Plugin

View in AI SkillSafe app
Scanned · no findings
146 downloads
0 stars
0 demos
SKILL.md
namejava-maven
descriptionMaster Apache Maven - POM configuration, plugins, lifecycle, dependency management
sasmp_version1.3.0
version3.0.0
bonded_agent05-java-build-tools
bond_typeSECONDARY_BOND
allowed-toolsRead, Write, Bash, Glob, Grep

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

Problem Solution
Dependency not found Check repository, version
Version conflict Use BOM or enforcer
Build OOM Set MAVEN_OPTS=-Xmx1g

Usage

Skill("java-maven")

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@pluginagentmarketplace/java-maven/verified)](https://skillsafe.ai/skill/@pluginagentmarketplace/java-maven/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@pluginagentmarketplace/java-maven/installs)](https://skillsafe.ai/skill/@pluginagentmarketplace/java-maven/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@pluginagentmarketplace/java-maven/scan)](https://skillsafe.ai/skill/@pluginagentmarketplace/java-maven/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@pluginagentmarketplace/java-maven/eval)](https://skillsafe.ai/skill/@pluginagentmarketplace/java-maven/)