# 使用 Homebrew 安装 maven-shell

查看 maven-shell 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:maven-shell
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install maven-shell
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:maven-shell
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/maven-shell>
- **版本:** 1.1.0
- **来源摘要:** Shell for Maven
- **主页:** <https://github.com/jdillon/mvnsh>
- **仓库:** <https://github.com/jdillon/mvnsh>
- **许可证:** EPL-1.0
- **源码归档:** <https://search.maven.org/remotecontent?filepath=org/sonatype/maven/shell/dist/mvnsh-assembly/1.1.0/mvnsh-assembly-1.1.0-bin.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mvnsh (cli)
- mvnsh (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.0
- 本地数据: OK
- 上游仓库: https://github.com/jdillon/mvnsh
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Maven Shell, packaged as `maven-shell` and executed as `mvnsh`, is a shell-oriented wrapper around Apache Maven intended to give Maven users an interactive command environment.

### 项目历史

The README describes the project tersely as Maven Shell (`mvnsh`) and says it is based on GShell 3. The README and POM both carry copyright text beginning in 2009, and the POM identifies the Maven coordinates as `com.planet57.maven.shell:mvnsh` with modules for commands, bootstrap, personality, and assembly.

The public tag list includes mvnsh-0.9, 0.10, 1.0, 1.0.1, and 1.1.0, with the GitHub release page for mvnsh-1.1.0 dated 2013-04-26. The POM's unreleased snapshot version is 1.2.0-SNAPSHOT, suggesting the packaged tool belongs to an older Maven 3.x/Java 8 era.

### 采用历史

The batch input records only Homebrew packaging for maven-shell, which fits its narrow audience: Java developers who wanted an interactive Maven shell rather than repeatedly invoking `mvn` commands from a normal terminal.

### 使用方式

The README documents building with Maven 3.3+ and Java 8+, preferably through the included Maven wrapper, then running the assembled shell with `./build run`. Homebrew exposes the `mvnsh` executable for users who install it as a package instead of building from source.

### 为什么软件包爱好者会关心

maven-shell is a small historical artifact from the period when Java build tools experimented with richer shells and command environments. It matters less as a modern ecosystem pillar than as a package-manager fossil for Maven power users and GShell-based tooling.

### 时间线

- 2009: README and POM copyright ranges begin.
- 2013: GitHub release mvnsh-1.1.0 is published.
- 2010s: POM records Maven 3.3+ and Java 8+ requirements for the maintained source line.

### Related projects

- The README says Maven Shell is based on GShell 3. Its neighboring ecosystem is Apache Maven, Maven Wrapper, Java build tooling, and older interactive shells around build systems.

### 来源

- <https://github.com/jdillon/mvnsh>
- <https://github.com/jdillon/mvnsh/releases/tag/mvnsh-1.1.0>
- <https://raw.githubusercontent.com/jdillon/mvnsh/master/README.md>
- <https://raw.githubusercontent.com/jdillon/mvnsh/master/pom.xml>
- source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** maven-shell
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [maven](https://pkg.so/zh-hans/brew/maven/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools, java.
- [ant](https://pkg.so/zh-hans/brew/ant/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools, java.
- [mill](https://pkg.so/zh-hans/brew/mill/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools, java.
- [sbt](https://pkg.so/zh-hans/brew/sbt/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools.
- [bazel](https://pkg.so/zh-hans/brew/bazel/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools.
- [bear](https://pkg.so/zh-hans/brew/bear/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools.
- [leiningen](https://pkg.so/zh-hans/brew/leiningen/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools.
- [maturin](https://pkg.so/zh-hans/brew/maturin/) - Shares pkgdb curated category or tags: build-tool, build-tools, cli, developer-tools.
- [bazel-diff](https://pkg.so/zh-hans/brew/bazel-diff/) - Local metadata places this package in an adjacent workflow. Shared terms: build, build-tool, build-tools, cli, developer.

## Combined YAML source

View the package source record on GitHub. [combined/maven-shell.yml](https://github.com/mxcl/pkgdb/blob/main/combined/maven-shell.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
