maven-build

Automate Maven build, test, and packaging workflows for Java projects.

Updated Dec 20, 2025
One-click install
npx skills add https://github.com/matiaspakua/notaire --skill maven-build-matiaspakua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maven-build
Source: https://github.com/matiaspakua/notaire/tree/main/.claude/skills/maven-build
Command: npx skills add https://github.com/matiaspakua/notaire --skill maven-build-matiaspakua

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build, test and package Java Maven projects. Use for compiling, running tests, or packaging the application.

Core Features & Use Cases

  • Build entire project with mvn clean install
  • Build specific module with dependencies using mvn clean install -pl <module> -am
  • Package without tests using mvn clean package -DskipTests
  • Run tests for specific module using mvn test -pl backend-api
  • Run tests with coverage using mvn test and mvn jacoco:report
  • Check for issues using mvn spotbugs:check and mvn checkstyle:check

Quick Start

Run mvn clean install to build the entire project.

Frequently Asked Questions about maven-build

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a specific Maven module with its dependencies?

To build a specific Maven module with its dependencies, use the mvn clean install -pl <module> -am command. This targets the selected module while ensuring required upstream modules are compiled and installed automatically.

What is the best way to skip tests during Maven packaging?

The best way to skip tests during Maven packaging is to run mvn clean package -DskipTests. This executes the full packaging workflow while bypassing the test execution phase to speed up artifact generation.

Do I need Java 21 to run Maven builds and tests?

Yes, you need Java 21 to run Maven builds and tests because the workflow requires Maven 3.x and a conventional pom.xml-based project configured for the Java 21 environment.

How do I run tests with coverage for a specific Maven module?

To run tests with coverage for a specific Maven module, execute mvn test -pl <module> followed by mvn jacoco:report. This runs the module's tests and generates the code coverage report.

Can I check code quality issues during a Maven build?

Yes, you can check code quality issues during a Maven build by running mvn spotbugs:check and mvn checkstyle:check. These goals perform static analysis to identify bugs and enforce styling rules.