Developer commands

June 4, 2026 · View on GitHub

Essential maven commands

# Analyze dependencies
./mvnw dependency:tree
./mvnw dependency:analyze
./mvnw dependency:resolve

./mvnw clean validate -U
./mvnw buildplan:list-plugin
./mvnw buildplan:list-phase
./mvnw help:all-profiles
./mvnw help:active-profiles
./mvnw license:third-party-report

# Clean the project
./mvnw clean

# Run unit tests
./mvnw clean test

# Run integration tests
./mvnw clean verify

# Clean and package in one command
./mvnw clean package

# Check for dependency updates
./mvnw versions:display-property-updates
./mvnw versions:display-dependency-updates
./mvnw versions:display-plugin-updates

# Generate project reports
./mvnw site
jwebserver -p 8005 -d "$(pwd)/target/site/"

# Run blog in local
./mvnw clean generate-resources jbake:inline -pl site-generator -P local-preview

# Promote blog changes to Prod
./mvnw clean generate-resources -pl site-generator -P site-update

Submodules

This is a multi-module project. The following modules are declared in the root pom.xml.

ModuleArtifact IDCommandsDescription
skills-generatorcursor-rules-java-skills-generator./mvnw clean verify -pl skills-generator
./mvnw clean install -pl skills-generator
./mvnw clean install -pl skills-generator -P release
Unified XML → skills generator: produces agent skills into skills-generator/target/skills, copies local output into .agents/skills, and refreshes skills/ only through the explicit release profile.
site-generatorcursor-rules-java-site./mvnw clean verify -pl site-generator
./mvnw clean generate-resources jbake:inline -pl site-generator -P local-preview
./mvnw clean generate-resources -pl site-generator -P site-update
JBake-based static site generator for documentation and GitHub Pages.

Maven Profiles

The following profiles are declared in this project. Activate them with -P <profileId>.

Profile IDCommandActivationDescription
security./mvnw clean verify -P securitymanualRuns OWASP dependency-check-maven to scan for known vulnerabilities; fails on CVSS ≥ 7.
find-bugs./mvnw clean verify -P find-bugsmanualRuns PMD and SpotBugs static analysis with max effort and low threshold.
release./mvnw clean install -pl skills-generator -P releasemanualCleans and refreshes the public skills/ release output instead of copying generated skills to .agents/skills.
local-preview./mvnw clean generate-resources jbake:inline -pl site-generator -P local-previewmanualGenerates site to target/docs-local and serves it locally (site-generator).
site-update./mvnw clean generate-resources -pl site-generator -P site-updatemanualRegenerates the static site into docs/ for GitHub Pages (site-generator).

Plugin Goals Reference

The following sections list useful goals for each plugin configured in this project's pom.xml.

maven-compiler-plugin

GoalDescription
./mvnw compiler:compileCompile main source files
./mvnw compiler:testCompileCompile test source files

maven-surefire-plugin

GoalDescription
./mvnw surefire:testRun unit tests
./mvnw surefire:helpDisplay help information

maven-resources-plugin

GoalDescription
./mvnw resources:resourcesCopy main resources to output directory
./mvnw resources:testResourcesCopy test resources to output directory
./mvnw resources:copy-resources@copy-skills -pl skills-generatorCopy already generated skills from skills-generator/target/skills into .agents/skills for local agent use

maven-antrun-plugin

The skills-generator module uses this plugin inside the release profile to clean skills/ before the install-phase copy-skills execution refreshes the public release output.

maven-clean-plugin

GoalDescription
./mvnw clean:cleanDelete the build output directory

jbake-maven-plugin

GoalDescription
./mvnw jbake:generateGenerate static site with JBake
./mvnw jbake:inlineGenerate and serve site locally

maven-enforcer-plugin

GoalDescription
./mvnw enforcer:enforceExecute enforcer rules
./mvnw enforcer:display-infoDisplay current platform information

spotless-maven-plugin

GoalDescription
./mvnw spotless:applyApply formatting fixes
./mvnw spotless:checkCheck formatting and fail on violations

versions-maven-plugin

GoalDescription
./mvnw versions:display-dependency-updatesShow available dependency updates
./mvnw versions:display-plugin-updatesShow available plugin updates
./mvnw versions:display-property-updatesShow available property updates
./mvnw versions:use-latest-releasesUpdate dependencies to latest releases
./mvnw versions:set -DnewVersion=X.Y.ZSet the project version

spotbugs-maven-plugin

GoalDescription
./mvnw spotbugs:checkRun SpotBugs analysis and fail on bugs
./mvnw spotbugs:spotbugsGenerate a SpotBugs report
./mvnw spotbugs:guiLaunch the SpotBugs GUI

maven-pmd-plugin

GoalDescription
./mvnw pmd:checkRun PMD analysis and fail on violations
./mvnw pmd:pmdGenerate a PMD report
./mvnw pmd:cpd-checkRun copy-paste detection and fail on duplicates

dependency-check-maven

GoalDescription
./mvnw dependency-check:checkScan dependencies for known vulnerabilities
./mvnw dependency-check:aggregateAggregate scan for multi-module projects