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
Install
$ npx -y skills add ducpm2303/claude-java-plugins --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/build

Context preview

What this command does when you run it.

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

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
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.

Get the whole plugin, auto-invoked
Stats
17
Stars
0
Views
0
Forks
Maintained
Maintenance
Shell
Language
4mo ago
Last commit
4mo ago
Created

Repo: ducpm2303/claude-java-plugins