maven-cli

maven-cli is a skill for Claude Code from motlin/claude-code-plugins. It costs 69 tokens per session (469 once invoked), scanned A, original, Apache-2.0.

A set of Java and Maven skills for running builds reliably and managing OpenRewrite and Maven project files. Maven is a tool that builds Java projects and manages their dependencies.

In plain words
What is it for?
Use it to choose Maven build commands, rebuild dependent modules, work with OpenRewrite, and maintain dependency ordering in POM files.
Why use it?
It helps avoid misleading build results caused by stale cached dependencies, especially when working across branches or modules.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the java plugin — 6 skills shipped together

Good fit Use it to choose Maven build commands, rebuild dependent modules, work with OpenRewrite, and maintain dependency ordering in POM files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/motlin/claude-code-plugins/maven-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add motlin/claude-code-plugins --skill maven-cli
Clone the repo
git clone --depth 1 https://github.com/motlin/claude-code-plugins

Made for: Claude Code.

Or install java, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maven-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/motlin/claude-code-plugins/maven-cli/github.svg)](https://agentmods.dev/skills/motlin/claude-code-plugins/maven-cli)
Your own site
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/maven-cli"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/maven-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for maven-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/maven-cli"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/maven-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.00469
Opus 5.5 $0.00028 $0.00188
Sonnet 5.5 $0.00014 $0.00094
Haiku 4.5 $0.00007 $0.00047

Measured 22d ago against content hash f2fad8afe304, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

maven-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/java/skills/maven-cli/SKILL.md · 27 lines

What it actually says

Maven CLI

Avoid -o / --offline

Do not pass -o or --offline by default.

In multi-worktree or multi-branch projects, ~/.m2/repository holds artifacts installed by other worktrees, possibly compiled against different transitive versions than this branch resolves. Offline mode makes Maven trust those cached sibling modules instead of rebuilding them, producing phantom compile errors that look like upstream defects. Example: a sibling module compiled against Dropwizard 3 leaking io.dropwizard.core.ConfiguredBundle references into a Dropwizard 2 build.

To verify a module compiles, use mvn -pl <module> -am compile (or clean install -DskipTests). -am rebuilds upstream siblings from this worktree's source. If -am fails on an upstream module, fix that root cause rather than falling back to -o.

Use -o only when the cache is known to match HEAD (for example, right after a successful mvn install from the same branch) or when testing offline behavior specifically.

Don't use stash-and-rerun to acquit your diff

git stash && mvn ... failing with the same error does not prove the diff innocent. Both runs resolve from the same ~/.m2 cache, so a polluted cache fails identically either way.

Reproduce against a freshly built dependency graph instead: mvn -pl <module> -am clean install -DskipTests. If it succeeds, the earlier failure was cache pollution. If it still fails, the failure is real.

Prefer -pl <module> -am over building everything

During development, scope builds to the changed module plus its upstream dependencies. It is faster than a root build and uses the exact classpath the module sees. Save full reactor builds for release verification or changes spanning many modules.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed f2fad8afe304
  2. 1mo ago First seen · 27 lines · 69 tokens per session scan A d21200f42777

Subscribe to this mod's changes

maven-cli is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed yesterday), licensed Apache-2.0. It adds 69 tokens to every session and 469 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

java-affected-tests

Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so this selects the unit tests and…

open-metadata/OpenMetadata · 120 tokens

azure-security-keyvault-secrets-java

Azure Key Vault Secrets Java SDK for secret management. Use when storing, retrieving, or managing passwords, API keys, connection strings, or other sensitive configuration data.

microsoft/skills · 40 tokens

azure-ai-anomalydetector-java

Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate/multivariate anomaly detection, time-series analysis, or AI-powered monitoring.

microsoft/skills · 43 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

azure-communication-common-java

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

microsoft/skills · 35 tokens

union-type-wrappers

Add typed getters and setters over BinaryData properties that represent TypeSpec union types in generated Java models. Use when generated classes expose BinaryData for union-typed fields and you need ergonomic, type-safe accessors instead.

Azure/azure-sdk-for-java · 49 tokens