Skip to content
Development
Command

/build

Build the Java project — detects Maven or Gradle and runs a clean build with test execution

From plugin
claude-java-plugins
175 skills6 agents5 commands
> /plugin marketplace add ducpm2303/claude-java-plugins

Command definition

build.md
description: Build the Java project — detects Maven or Gradle and runs a clean build with test execution

/java-core:build

Build the Java project and report the result.

Instructions

1. Detect the build tool:

  • If `pom.xml` exists → Maven
  • If `build.gradle` or `build.gradle.kts` exists → Gradle
  • If neither found → tell the user and stop

2. Run the build:

  • **Maven**: `mvn clean package`
  • **Gradle**: `./gradlew clean build`

3. Parse the output:

  • On **success**: report `BUILD SUCCESS`, total time, and test results summary (tests run, failures, errors, skipped)
  • On **failure**: show the first failing error with file:line, describe the root cause in plain English, and suggest a fix

4. If tests fail specifically (build compiled but tests red):

  • List each failing test with method name and failure message
  • Suggest running `/java-quality:test` for targeted test generation
@ducpm2303
Ships withclaude-java-plugins

A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.

1726 skills6 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
17
Star history of ducpm2303/claude-java-plugins on GitHub, a chart by star-history.com

Other commands on claude-java-plugins.

check

check

Command

Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings

audit

audit

Command

Full quality audit — runs security scan, performance check, and test coverage analysis in sequence and produces a combined report

run

run

Command

Start the Spring Boot application locally — checks prerequisites, then runs the app and reports startup status

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command