Skip to content
Back to skills

Build Maven

ASecurity

POM structure, dependency management, plugins, profiles, and multi-module projects.

  • 8 stars
  • 0 votes
  • 0 copies
  • 16 views
  • Added September 8, 2026
ai-agentsjavabashspring

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ngxtm/devkit --skill build-maven --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Maven?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Maven
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ngxtm-build-maven/badge)](https://www.skillsdirectory.com/skills/ngxtm-build-maven)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Maven Build
description: POM structure, dependency management, plugins, profiles, and multi-module projects.
metadata:
  labels: [java, maven, build]
  triggers:
    files: ['pom.xml']
    keywords: [dependencyManagement, plugin, maven, lifecycle, groupId, artifactId, version]
---

# Maven Build Standards

## POM Structure

```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                             http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.2.0</version>
    </parent>

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

    <properties>
        <java.version>21</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
```

## Dependency Management

```xml
<dependencyManagement>
    <dependencies>
        <!-- BOM import -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2023.0.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
```

## Common Commands

```bash
mvn clean install              # Build and install
mvn clean install -DskipTests  # Skip tests
mvn dependency:tree            # Show dependency tree
mvn versions:display-dependency-updates  # Check updates
mvn spring-boot:run            # Run Spring Boot app
```

## References

- [Dependency Management](references/dependency-management.md) - BOMs, exclusions, versions

Files in this skill

  • SKILL.md2.3 KB
  • references/REFERENCE.md487 B
  • references/dependency-management.md2.6 KB
  • references/lifecycle-phases.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.