java-maven-dependency-audit

Audits Maven dependencies for outdated versions, security vulnerabilities, and version conflicts.

Updated Apr 20, 2020
One-click install
npx skills add https://github.com/UnterrainerInformatik/java-rdb-utils --skill java-maven-dependency-audit-unterrainerinformatik
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: java-maven-dependency-audit
Source: https://github.com/UnterrainerInformatik/java-rdb-utils/tree/main/.agents/skills/java-maven-dependency-audit
Command: npx skills add https://github.com/UnterrainerInformatik/java-rdb-utils --skill java-maven-dependency-audit-unterrainerinformatik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Java projects accumulate outdated, vulnerable, or conflicting dependencies over time, and manually auditing a pom.xml against CVE databases and release feeds is slow and error-prone. This Skill automates the full audit workflow using standard Maven plugins. ## Core Features & Use Cases - Outdated Dependency Detection: Runs versions:display-dependency-updates and categorizes updates by severity (security, major, minor, patch). - Conflict & Tree Analysis: Uses dependency:tree and dependency:analyze to find version conflicts, unused declared dependencies, and undeclared used dependencies. - Security Scanning: Integrates OWASP dependency-check to map dependencies to CVEs with CVSS severity ratings. - Use Case: Before a release, ask for a dependency audit and receive a prioritized report listing critical CVEs to fix immediately, safe patch updates, and major upgrades requiring migration planning. ## Quick Start Audit the Maven dependencies in this project and generate a prioritized report of security issues and outdated versions.

Frequently Asked Questions about java-maven-dependency-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check for outdated Maven dependencies?▼

Run mvn versions:display-dependency-updates to list all dependencies with newer versions available. Use mvn versions:display-plugin-updates to check build plugins, and add -Dincludes=groupId to filter large dependency trees.

How to find security vulnerabilities in pom.xml dependencies?▼

Add the OWASP dependency-check-maven plugin to your pom.xml and run mvn dependency-check:check. It generates an HTML report in target/dependency-check-report.html mapping dependencies to CVEs with CVSS severity scores.

How do I find why a dependency is included in my Maven project?▼

Run mvn dependency:tree -Dincludes=groupId:artifactId to see which dependencies pull it in transitively. You can then exclude it with an exclusions block or force a specific version via dependencyManagement.

What does 'omitted for conflict' mean in Maven dependency tree?▼

It means multiple versions of the same library exist in the dependency graph and Maven resolved the conflict by selecting one version. Multiple versions of the same library can cause runtime issues and should be aligned via dependencyManagement.

How do I find unused dependencies in a Maven project?▼

Run mvn dependency:analyze to report unused declared dependencies that can be removed and used undeclared dependencies that should be explicitly declared in your pom.xml.

When should I update major dependency versions in Maven?▼

Major version updates (x.0.0 changes) require reviewing the changelog and migration guide plus thorough testing. Patch updates are generally safe, minor updates need basic testing, and security fixes should be applied as soon as possible.