Skip to main content

maven-build

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

来源信息

仓库
MorphiaOrg/morphia
最近来源活动
2026年1月27日 03:04
检测到的 SKILL.md 语言
英语
星标
1,675
分支
450

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
maven-build
description
Build and test the Morphia project using Maven. Use when compiling, running tests, or building artifacts.
allowed-tools
Bash(mvn:*), Bash(./mvnw:*)
# 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
在 GitHub 查看