# 使用 Homebrew 安装 jsonschema2pojo

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

## 安装

```sh
sudo av install brew:jsonschema2pojo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jsonschema2pojo
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:jsonschema2pojo
- **软件包管理器:** Homebrew
- **版本:** 1.3.3
- **来源摘要:** Generates Java types from JSON Schema (or example JSON)
- **主页:** <https://www.jsonschema2pojo.org/>
- **仓库:** <https://github.com/joelittlejohn/jsonschema2pojo>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jsonschema2pojo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.3
## 项目历史与用法

jsonschema2pojo generates Java types from JSON Schema or example JSON, with optional data-binding annotations for Jackson, Gson, Moshi, and JSON-B. It is both an online generator and a build-time/code-generation tool for Java projects.

### 项目历史

The repository history reaches back to a 2010-12-10 commit titled "initial import of jsonschema2pojo core, cli, maven", showing that the core library, command-line interface, and Maven integration were present from the first imported revision. The GitHub repository used for development was created on 2013-06-22.

The project expanded around multiple ways to consume the generator. The README and wiki document Maven plugin usage, command-line usage, Gradle plugin usage, and embedded Java API usage. The official website also exposes an interactive generator that previews or zips generated POJOs from schemas or example documents.

The reference documentation tracks JSON Schema feature support by jsonschema2pojo version, with core structural rules such as simple `type`, `properties`, `items`, `enum`, `description`, and `format` marked as supported since 0.1.0.

### 采用历史

jsonschema2pojo became a familiar Java ecosystem bridge because it fits Maven and Gradle builds as well as ad hoc CLI generation. The README documents `brew install jsonschema2pojo`, plugin snippets, project downloads, a mailing list, and generated-code examples, making it approachable from package managers and Java build tools.

### 使用方式

Typical use is to point the Maven or Gradle plugin at schema files and generate Java sources during the build, run the `jsonschema2pojo` CLI with a source and target directory, use the web generator interactively, or embed `jsonschema2pojo-core` in Java code through `SchemaMapper`.

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

jsonschema2pojo matters because it packages schema-to-code generation in the style Java developers expect: Maven coordinates, Gradle plugin, CLI, downloadable releases, and Homebrew formula. It is a concrete example of JSON Schema leaving documentation and validation roles to become source-generation input.

### 时间线

- 2010-12-10: Initial imported commit included core, CLI, and Maven modules.
- 2012: Official site copyright line covers Joe Littlejohn and the online generator era.
- 2013-06-22: GitHub repository created.
- 2026-02-08: 1.3.3 release published.

### Related projects

- jsonschema2pojo is related to JSON Schema itself, JavaBeans-style POJOs, Jackson, Gson, Moshi, JSON-B, Maven, Gradle, and Java code-generation workflows.

### 来源

- <https://api.github.com/repos/joelittlejohn/jsonschema2pojo>
- <https://formulae.brew.sh/formula/jsonschema2pojo>
- <https://github.com/joelittlejohn/jsonschema2pojo>
- <https://github.com/joelittlejohn/jsonschema2pojo/commit/2b2b9cf5bf06fc73e443c54f5bfb163206788931>
- <https://github.com/joelittlejohn/jsonschema2pojo/releases/tag/jsonschema2pojo-1.3.3>
- <https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started>
- <https://github.com/joelittlejohn/jsonschema2pojo/wiki/Reference>
- <https://www.jsonschema2pojo.org/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## 来源

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