In short.
Plinth's Maven Plugins skill helps Java developers configure Maven builds through a coding assistant, but incomplete templates and inconsistent questions require careful review. Version 0.19.0 combines an interactive questionnaire with 19 implementation references and instructions to preserve existing configuration. Useful details include dependency analysis during verify and optional coverage, mutation testing and security profiles. Important gaps include missing Failsafe verification configuration, static analysis without explicit check executions, unresolved directory placeholders and unanswered threshold requirements. No commands or code were executed; build success, compatibility and generated outputs are unverified.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is skills/112-java-maven-plugins/SKILL.md and all 19 Markdown files in its references directory at commit 17ab7cf02be1cb035d57e81f0003896a1a0cf756, together with the repository root LICENSE. All supplied selected files are covered. Other repository folders, upstream plugin implementations, assistant installation systems and external service documentation are excluded. No commands, configurations or benchmark code were executed; build success, failure enforcement, compatibility, artifact generation and performance remain unverified.
The overview
Identity
112-java-maven-plugins is an assistant skill within Juan Antonio Breña Moral's Plinth Toolkit. Its main document coordinates questions and points to 19 Markdown references containing Maven XML, implementation guidance and suggested validation commands.
The original resource is available at [https://github.com/jabrena/plinth/tree/main/skills/112-java-maven-plugins]. The supplied source is pinned to commit 17ab7cf02be1cb035d57e81f0003896a1a0cf756. Its purpose is to guide changes to Java Maven projects; the supplied folder contains instructions and examples rather than a standalone application.
Fit and trade-offs
The skill offers a useful checklist for developers who want to choose build tools deliberately. It directs the assistant to inspect existing plugins, managed plugins, reporting entries, properties and profiles, skip duplicate additions and obtain agreement before enhancing existing configuration. Preservation depends on the assistant following those instructions; no demonstrated project changes establish that behavior.
Some templates impose substantial policy choices. Selecting Maven Compiler enables all lint warnings and treats warnings as errors. Selecting Enforcer includes an explicit ban on Lombok alongside dependency and environment rules. These settings can block previously passing builds and need agreement from the team maintaining the project.
Who it suits
The questionnaire accommodates Java libraries, command-line applications, microservices, serverless applications, proofs of concept and other project types. Beginners get explanations and a sequence of choices; experienced developers get XML templates and specific lifecycle settings to inspect.
It suits developers who can review changes to pom.xml and interpret Maven failures. Its JMH recipe is restricted to projects without a modules section and directs users of multi-module projects toward configuring individual modules. Supported coding assistant products and model requirements are not specified.
What it covers
The references cover compiler configuration, build rules, unit and integration tests, dependency analysis, source formatting and version management. Surefire Report supplies an HTML test report configuration, while JXR supplies source cross-reference reports. Spotless includes formatting checks and an explicit formatting command; Versions includes commands for discovering dependency, plugin and property updates.
Optional profiles cover JaCoCo coverage, PiTest mutation testing, OWASP dependency vulnerability scanning, SpotBugs and PMD analysis, Sonar integration, cyclomatic complexity and JMH benchmarks. The complexity recipe supplies a PMD ruleset and distinguishes support-file locations for single-module and multi-module projects.
Additional recipes address Flatten for library publishing, Git metadata in build output and Jib container images. Jib examples include registry builds, builds to a local Docker daemon and image tarballs. These are documented configuration paths; successful artifacts and reports are not established.
Using it
What you need
The documented starting point is an existing Java Maven project with pom.xml, an appropriate JDK and either Maven or Maven Wrapper. The skill requires initial Maven validation to succeed and stops on failure. It subsequently checks for wrapper files and asks whether to install the wrapper when absent.
Requirements vary by choice. Git metadata generation requires a Git repository. Jib needs a target image name. Sonar needs service details, project identifiers and an authentication token for the documented analysis command. The security profile includes NVD refresh and retry settings, but complete network, credential and service requirements are not documented.
An assistant following the skill needs to inspect and edit project files and invoke Maven. The source does not establish a supported assistant client, installation mechanism or compatibility matrix. Maven 3.9.10 appears in the templates; its presence does not establish a tested minimum or a supported version range.
How it works
The main document defines the sequence: validate the project, inspect existing configuration, check Maven Wrapper, ask questions individually, confirm selections and consult only the corresponding references. Questions collect project type, Java version, desired tools and conditional values such as container image names or coverage thresholds. Selected references then supply properties, XML and any supporting files.
The optional profiles are named groups of configuration that are disabled by default and enabled explicitly, for example with -Pjacoco. Some recipes attach goals to lifecycle phases. Dependency analysis binds analyze-only to verify, enables failOnWarning and excludes non-compile scopes from unused dependency analysis. It also acknowledges exceptions for dependencies used through reflection or generated code.
Thresholds have different meanings across recipes. JaCoCo applies one selected percentage to six coverage counters. PiTest uses coverage.level for both mutation and coverage thresholds. Mutation testing deliberately changes code to examine whether tests detect those changes; the source provides configuration, not measured test effectiveness.
Getting started
Keep SKILL.md together with its references directory so its relative references remain available. The exact way to register or load that folder into a particular coding assistant is unknown from these files. The pinned main document is available at [https://raw.githubusercontent.com/jabrena/plinth/17ab7cf02be1cb035d57e81f0003896a1a0cf756/skills/112-java-maven-plugins/SKILL.md].
The skill's documented preparation begins with ./mvnw validate or mvn validate, followed by an inventory of existing configuration and the wrapper check. Before using selected XML, resolve project-specific placeholders, confirm version choices and inspect how additions interact with existing settings. Each reference supplies follow-up commands, but those commands are proposed checks rather than recorded successful runs.
Example configuration path
An illustrative request is to add unit test execution and an 80% coverage gate. The documented choices would select Surefire and JaCoCo, preserve existing configuration and set coverage.level to 80. The Surefire template includes files ending in Test.java, excludes files ending in IT.java and sets skipAfterFailureCount to 1. Projects using other test naming conventions need adjustments.
The JaCoCo template appends a percent sign to coverage.level and applies the threshold to line, branch, method, class, instruction and complexity coverage at bundle level. Its suggested command is ./mvnw clean verify -Pjacoco, and its documented report location is target/site/jacoco/index.html. The 80% value is an example requirement, not an achieved result; execution and report generation are unverified.
Assessment & evidence
Known gaps
Several examples leave build enforcement unclear. Failsafe declares the integration-test goal but omits its verify goal, so integration-test failure enforcement needs explicit confirmation. The find-bugs profile declares PMD and SpotBugs without check executions, although its usage instructions recommend running verify for analysis. The supplied configuration does not establish that those checks execute during that command.
The Git metadata reference proposes [VERIFY_VERSION] for project.build.outputDirectory, and the security reference proposes the same placeholder for project.build.directory. These are unresolved directory values. SpotBugs reporting also names include and exclude XML filter files without supplying those files or instructions for creating them.
The questionnaire has routing gaps. Build information tracking has a reference and selection condition but no corresponding option in Question 3. The Sonar setup condition names an option that does not match the listed choices. PiTest requires a selected threshold, but the questionnaire asks for a threshold only when JaCoCo is selected.
The JMH sample declares package info.jab.benchmarks, while its example run command names info.jab.demo.benchmarks.FibonacciBenchmark. Those names need alignment. Its executable JAR and JSON report are intended outputs with no demonstrated generation or benchmark results.
Why the approach can help
Inspecting existing configuration before selecting additions provides a sensible basis for avoiding duplicates and conflicts. Reading only selected references can also keep an assistant focused on the requested tools. These are benefits suggested by the design; the source provides no comparative evidence that the approach reduces errors or configuration time.
Explicit profiles allow coverage, mutation testing, security scanning and complexity analysis to be requested separately. That gives developers control over which documented checks they invoke, but successful execution still depends on correct lifecycle bindings, complete support files and project compatibility. The skill expects an initially valid Maven project and stops when initial validation fails.
Other approaches
For a single plugin change, a developer can manually adapt the corresponding reference and review the resulting XML. A team with established Maven settings can use the documents as a checklist while retaining its existing configuration. These approaches require the same review of placeholders, lifecycle bindings and policy defaults.
For JMH in a multi-module project, the reference suggests configuring individual modules. The supplied material does not compare competing assistant skills or establish which approach is faster, more reliable or easier to maintain.
Evidence and scope
The source material comprises the selected skill's SKILL.md, all 19 reference Markdown files and the repository root LICENSE at the same pinned commit. It supports analysis of the written questions, configuration templates, constraints and proposed commands.
The selected folder supplies no recorded build results, compatibility matrix, measured quality improvements or benchmark outcomes. No commands or code were executed. Other Plinth skills, upstream Maven plugin implementations and current external service documentation are outside this evidence, so their behavior and compatibility are not assessed.
Access & freshness
Costs
The Apache licence grants no-charge rights to the licensed material under its conditions. This establishes permission to use and redistribute the skill documents; it does not establish a zero operating cost.
The files give no prices for coding assistant access, CI execution, container registries or Sonar services, and no estimates of build, scan or benchmark duration. Total cost is unknown and depends on the selected tools and operating environment.
Licence and reuse
SKILL.md and all 19 references declare Apache-2.0. The repository LICENSE supplies the Apache License 2.0 text, permitting use, modification and redistribution subject to its conditions. Redistribution requires a licence copy, retention of applicable notices and prominent change notices in modified files. Applicable NOTICE attributions must also be retained if the distribution includes a NOTICE file.
The licence includes warranty disclaimers and does not grant general trademark permission. This evidence covers the skill documents; it does not establish the licences or service terms of every Maven plugin or external service named in the recipes.
Version and currency
The source snapshot was captured on 2026-11-16 at commit 17ab7cf02be1cb035d57e81f0003896a1a0cf756. The main document and references declare version 0.19.0. Capture time establishes the snapshot date, not the publication or last modification date.
Examples specify Maven 3.9.10, Compiler plugin 3.13.0, JaCoCo 0.8.13 and Jib 3.5.1. These are template values; their currentness and compatibility are unknown. The questionnaire labels both Java 21 and Java 25 as the latest LTS version, so that wording is internally inconsistent. Changes after the pinned commit are not established.
Before using it
Choose the required plugins and profiles, then review their defaults against the project. Confirm compiler warning policy, the Lombok restriction, test filename patterns and coverage thresholds. Resolve questionnaire omissions, directory placeholders and missing support files before applying changes, and inspect the complete pom.xml diff.
For selected recipes, verify both execution and intended failure behavior. Confirm that integration-test failures fail the build, static analysis checks actually run, expected tests are discovered and reports appear at their documented locations. Align the JMH package and command if using that recipe. Initial Maven validation alone does not establish these outcomes.
