110-java-maven-best-practices

110-java-maven-best-practices is a skill for Claude Code, Codex from jabrena/cursor-rules-examples. It costs 71 tokens per session (631 once invoked), scanned A, original, Apache-2.0.

A guide for reviewing and improving a Maven pom.xml file, which controls how a Java project manages dependencies and builds. It covers single-project and multi-module projects, where one repository contains several related modules.

In plain words
What is it for?
Use it to validate and review dependency management, plugins, profiles, version properties, repositories, project layout, and parent-child module settings.
Why use it?
It helps find scattered versions, repeated settings, inconsistent module configuration, and other setup problems that can make builds harder to maintain.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jabrena/cursor-rules-examples/110-java-maven-best-practices
Any agent
npx skills add jabrena/cursor-rules-examples --skill 110-java-maven-best-practices
Clone the repo
git clone --depth 1 https://github.com/jabrena/cursor-rules-examples

Made for: Claude Code, Codex.

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 110-java-maven-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/jabrena/cursor-rules-examples/110-java-maven-best-practices.svg)](https://agentmods.dev/skills/jabrena/cursor-rules-examples/110-java-maven-best-practices)
Your own site
<a href="https://agentmods.dev/skills/jabrena/cursor-rules-examples/110-java-maven-best-practices"><img src="https://agentmods.dev/badge/skills/jabrena/cursor-rules-examples/110-java-maven-best-practices.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00071 $0.00631
Opus 5 $0.00036 $0.00316
Sonnet 5 $0.00014 $0.00126
Haiku 4.5 $0.00007 $0.00063

Measured 4d ago against content hash 6e7dbc9a2af3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

110-java-maven-best-practices 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 4d 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.

.agents/skills/110-java-maven-best-practices/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maven Best Practices

Improve Maven POM configuration using industry-standard best practices.

What is covered in this Skill?

  • Dependency management via <dependencyManagement> and BOMs
  • Standard directory layout (src/main/java, src/test/java)
  • Centralized plugin management
  • Build profiles for environment-specific settings
  • Readable POM structure with version properties
  • Explicit repository declaration
  • Version centralization
  • Multi-module project structure with proper inheritance
  • Cross-module version consistency
  • Multi-module scope: After reading the root pom.xml, check for a <modules> section. If present, read every child module's pom.xml before making any recommendations.
  • Check each child for hardcoded versions that duplicate parent <dependencyManagement>, redundant <pluginManagement> blocks, properties that should be centralized, and version drift across sibling modules.

Constraints

Before applying Maven best practices recommendations, ensure the project is in a valid state by running Maven validation. This helps identify any existing configuration issues that need to be resolved first. For multi-module projects, scope analysis must cover every child module POM — not just the root.

  • MANDATORY: Run ./mvnw validate or mvn validate before applying any Maven best practices recommendations
  • VERIFY: Ensure all validation errors are resolved before proceeding with POM modifications
  • SAFETY: If validation fails, do not continue and ask the user to fix the issues before continuing
  • MULTI-MODULE DISCOVERY: After reading the root pom.xml, check whether it contains a <modules> section. If it does, read every child module's pom.xml before making any recommendations — analysis scope is the full module tree, not only the root
  • CROSS-MODULE SCOPE: When child modules exist, check each one for: hardcoded dependency versions that duplicate <dependencyManagement> in the parent, plugin configurations that duplicate <pluginManagement>, properties that should be centralized in the parent, and version drift (same artifact declared at different versions across sibling modules)
  • BEFORE APPLYING: Read the reference for detailed examples, good/bad patterns, and constraints

Read the full file on GitHub · 47 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 47 lines · 71 tokens per session scan A 6e7dbc9a2af3

Subscribe to this mod's changes

110-java-maven-best-practices is a skill published in the GitHub repository jabrena/cursor-rules-examples (2 stars, last pushed 8d ago), licensed Apache-2.0. It adds 71 tokens to every session and 631 once invoked, about $0.0004 per session on Opus 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-08-31.

Related

Other skills, from other repositories

uikit-expert

Write, review, or improve UIKit code following best practices for view controller lifecycle, Auto Layout, collection views, navigation, animation, memory management, and modern iOS 18–26 APIs. Use when building new UIKit features, refactoring existing views or view controllers, reviewing code quality, adopting modern…

zinxj/uikit-expert-skill · 95 tokens

java-data-engineering-and-integration-services

Guides agents through Java-based data engineering services and processors. Use when building connectors, ingestion services, stream processors, metadata services, JVM batch tools, or operational integrations in Java.

vaquarkhan/data-engineering-agent-skills · 45 tokens

java-code

Java development, JVM tuning, and enterprise patterns.

DongDuong2001/pudo-code-system · 12 tokens

java-coding-standards

Java/Spring Boot 编码规范:用于编写、审查、重构和讲解 Java 代码。适用于 Java 风格、Spring Boot 架构、Controller/Service/Manager/DAO 分层、API 边界、Entity/VO/Form/DTO/BO 设计、MyBatis/MyBatis-Plus 持久化、事务、异常、日志、安全、性能、测试和 Java 代码评审等场景。默认结合 Google Java Style 与 Spring Boot 最佳实践,同时允许仓库内的 AGENTS.md、CLAUDE.md、Checkstyle、Spotless 以及相邻代码风格覆盖这些通用规则。.

Snailclimb/AIGuide · 144 tokens

telnyx-ai-inference-java

Access Telnyx LLM inference APIs, embeddings, and AI analytics for call insights and summaries. This skill provides Java SDK examples.

team-telnyx/ai · 35 tokens

telnyx-messaging-hosted-java

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides Java SDK examples.

team-telnyx/ai · 41 tokens