/build
Build the Java project — detects Maven or Gradle and runs a clean build with test execution
$ npx -y skills add ducpm2303/claude-java-plugins --agent claude-codeHow 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.mddescription: 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
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.
Other commands on claude-java-plugins.
- /check
Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings
Open command - /audit
Full quality audit — runs security scan, performance check, and test coverage analysis in sequence and produces a combined report
Open command - /routes
List all REST endpoints in the Spring Boot project — scans controllers and prints a route table
Open command - /run
Start the Spring Boot application locally — checks prerequisites, then runs the app and reports startup status
Open command

