OpenParable
Skip to content
← Back to skills

Maven Build

Development
maven-build

Maven Build is an Agent Skill for development published in the MorphiaOrg/morphia repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Build and test the Morphia project using Maven. Use when compiling, running tests, or building artifacts.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/MorphiaOrg/morphia/blob/HEAD/.claude/skills/maven-build/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/maven-build, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Maven Build Commands

This is a multi-module Maven project. Use mvn or ./mvnw (if available) to build and test.

Common Commands

  • Compile: mvn clean compile
  • Run tests: mvn test
  • Run specific test: mvn test -Dtest=ClassName#methodName
  • Integration tests: mvn clean verify
  • Full build (skip tests): mvn clean install -DskipTests
  • Full build: mvn clean install

Module-Specific Builds

To build or test a specific module:

mvn -pl module-name test
mvn -pl module-name -am clean install

The -am flag builds required dependencies.

Guidelines

  • Prefer ./mvnw if the wrapper exists in the project root
  • Always run tests after making code changes to verify nothing broke
  • If tests fail, analyze the error output and suggest fixes
  • Use -DskipTests only when explicitly requested or for quick compile checks