SkillHub

mvn-full-runner

v1.1.0

使用 Node.js 包装器安全运行 Maven 命令,支持全参数透传及可选工作目录。

Sourced from ClawHub, Authored by yuanyongm

Installation

Please help me install the skill `mvn-full-runner` from SkillHub official store. npx skills add yuanyongm/mvn-full-runner

Maven Build Skill

Run Maven with full passthrough support for all Maven capabilities.

Usage

node {baseDir}/scripts/mvn.mjs --dir "/path/to/project" -- clean test -DskipTests
node {baseDir}/scripts/mvn.mjs --dir "/path/to/project" -- package -Pprod -T 1C
node {baseDir}/scripts/mvn.mjs --dir "/path/to/project" -- help:effective-pom
node {baseDir}/scripts/mvn.mjs -- -v
node {baseDir}/scripts/mvn.mjs -- --version

Options

  • --dir <path>: optional working directory for Maven
  • --: optional separator; arguments after it are passed to mvn unchanged
  • All non-wrapper args are passed directly to Maven

Wrapper help

node {baseDir}/scripts/mvn.mjs --help-skill

Notes

  • Requires node and mvn binaries in PATH.
  • The wrapper itself only parses --dir; everything else is forwarded as-is.
  • Uses process spawn with shell: false for safer execution.