111-java-maven-dependencies

Guide Maven dependency selection for Java code quality and safety.

423|90|Updated Feb 8, 2025
One-click install
npx skills add https://github.com/jabrena/cursor-rules-java --skill 111-java-maven-dependencies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 111-java-maven-dependencies
Source: https://github.com/jabrena/cursor-rules-java/tree/main/skills/111-java-maven-dependencies
Command: npx skills add https://github.com/jabrena/cursor-rules-java --skill 111-java-maven-dependencies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill guides Java projects to add or evaluate Maven dependencies that improve code quality and safety, ensuring changes are purposeful and scoped.

Core Features & Use Cases

  • Interactive, consultative dependency selection for JSpecify, Error Prone + NullAway, VAVR, and ArchUnit.
  • Enforces project validation prerequisites with mvn validate before applying changes.
  • Provides a structured workflow to update POMs, properties, and plugin configurations based on user input.

Quick Start

Begin by answering the guided questions to tailor Maven dependencies for your project, then apply the chosen configurations to your pom.xml and build.

Frequently Asked Questions about 111-java-maven-dependencies

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

FAQPage Schema
How do I add Maven dependencies for null safety and static analysis in Java?

To add Maven dependencies for null safety and static analysis in Java, this skill uses a question-driven flow to scope JSpecify, Error Prone with NullAway, VAVR, and ArchUnit to your needs. It then updates your POM properties, dependencies, and plugin configurations accordingly.

What is the best way to configure JSpecify and Error Prone in a Maven project?

The best way to configure JSpecify and Error Prone in a Maven project is through a structured workflow that updates your pom.xml, properties, and plugin configurations based on guided questions, ensuring dependencies are purposeful and scoped to improve code quality.

Do I need to run mvn validate before applying Maven dependency changes?

Yes, you need to run mvn validate before applying Maven dependency changes. This skill enforces running mvn validate as a prerequisite to ensure your project is validated before any new dependencies, properties, or plugin configurations are applied to your pom.xml.

Can I use ArchUnit for architecture testing alongside VAVR in my Java project?

Yes, you can use ArchUnit for architecture testing alongside VAVR in your Java project. This skill interactively scopes Maven dependencies for both ArchUnit and VAVR, updating your pom.xml and plugin configurations to support safer code and architecture validation.

How does NullAway integration work with Maven plugins for Java code quality?

NullAway integration with Maven plugins for Java code quality works by configuring Error Prone alongside NullAway through this skill's guided workflow. It updates your pom.xml properties and plugin configurations to enforce null safety during the build process.

What Maven dependencies should I add to improve Java code safety?

To improve Java code safety, you should add Maven dependencies scoped by this skill including JSpecify for null safety, Error Prone with NullAway for static analysis, VAVR for functional data handling, and ArchUnit for architecture testing, all configured via a consultative flow.