mvnf

Run Maven tests across multi-module RDF4J projects with a clean, install, and verify workflow.

409|186|Updated Jan 14, 2016
One-click install
npx skills add https://github.com/eclipse-rdf4j/rdf4j --skill mvnf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mvnf
Source: https://github.com/eclipse-rdf4j/rdf4j/tree/main/.codex/skills/mvnf
Command: npx skills add https://github.com/eclipse-rdf4j/rdf4j --skill mvnf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill provides a repeatable, end-to-end workflow to run Maven tests across a multi-module RDF4J project, ensuring consistent results and fast feedback during development and CI.

Core Features & Use Cases

  • Deterministic module-level test runs: clean the selected module, build with -Pquick, and verify the tests in that module.
  • Flexible test selection: run full module test suites or target a specific test class or method, with optional integration tests via --it.
  • Offline-friendly execution: use -o to run Maven offline and minimize external dependencies, while surfacing actionable failure reports from target/*-reports/.

Quick Start

Run a module's full test suite by executing the mvnf script with the target module path.

Frequently Asked Questions about mvnf

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

FAQPage Schema
How do I run Maven tests for a specific module in a multi-module project?

To run Maven tests for a specific module in a multi-module project, the workflow cleans the target module, installs it using the -Pquick profile, and then executes verify to run the test suite. This ensures deterministic, repeatable test results.

How do I execute a single test class or method in a Maven multi-module build?

You can target a specific test class or method during the Maven verify step by passing the -Dtest or -Dit.test parameters. This allows you to isolate unit or integration tests without running the full module suite.

Can I run Maven integration tests offline for a multi-module project?

Yes, you can run Maven integration tests offline by using the -o flag. The workflow executes the build and verify steps in offline mode to minimize external dependencies while still surfacing actionable Failsafe reports on failure.

What is the best way to get consistent test results across RDF4J modules?

The best way to get consistent test results across RDF4J modules is to use a deterministic three-step workflow: clean the target module, install with -Pquick in offline mode, and verify tests. Surefire and Failsafe reports are surfaced on failure.

Why does my Maven multi-module test run fail to find dependencies?

Maven multi-module test runs may fail if dependencies are not installed locally. The workflow addresses this by running an install step with the -Pquick profile before executing tests, ensuring required module artifacts are available in your local repository.