Maven Build
Developmentmaven-buildMaven 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.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- 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
./mvnwif 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
-DskipTestsonly when explicitly requested or for quick compile checks