Apache License 2.0

项目介绍

joelittlejohn/jsonschema2pojo 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Apache License 2.0 许可证,目前获得 6.4k 个 Star、1.7k 次 Fork。

仓库全名
joelittlejohn/jsonschema2pojo
开源许可证
Apache License 2.0
Star 数
6.4k
Fork 数
1.7k
未关闭 Issue
252

README 摘要

jsonschema2pojo generates Java types from JSON Schema (or example JSON) and can annotate those types for data-binding with Jackson 2.x, Jackson 3.x, or Gson. Try jsonschema2pojo online or brew install jsonschema2pojo You can use jsonschema2pojo as a Maven plugin, a command line utility, a Gradle plugin or embedded within your own Java app. The Getting Started guide will show you how. A very simple Maven example: A…

完整内容见 GitHub 原始 README 或本页 。

常见问题

jsonschema2pojo 用什么语言开发?

主要使用 Java 编写,采用 Apache License 2.0 许可证,目前有 6.4k 个 Star。

jsonschema2pojo 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 jsonschema2pojo 的源码?

可以直接克隆仓库:git clone https://github.com/joelittlejohn/jsonschema2pojo.git,默认分支为 master;安装与运行步骤见仓库 README。

jsonschema2pojo 最近还在维护吗?

仓库最近一次更新为 5月2日,当前有 252 个未关闭 Issue;Star 数为 6.4k,可作为社区活跃度的参考。

简要分析

热度分
9896
价值分
4332
活跃状态
活跃

语言占比

Batchfile
Groovy
Java
Shell

Release

README

jsonschema2pojo Build Status Maven Central

jsonschema2pojo generates Java types from JSON Schema (or example JSON) and can annotate those types for data-binding with Jackson 2.x, Jackson 3.x, or Gson.

Try jsonschema2pojo online
or brew install jsonschema2pojo

You can use jsonschema2pojo as a Maven plugin, a command line utility, a Gradle plugin or embedded within your own Java app. The Getting Started guide will show you how.

A very simple Maven example:

<plugin>
    <groupId>org.jsonschema2pojo</groupId>
    <artifactId>jsonschema2pojo-maven-plugin</artifactId>
    <version>1.3.3</version>
    <configuration>
        <sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
        <targetPackage>com.example.types</targetPackage>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
</plugin>

A very simple Gradle example:

plugins {
  id "java"
  id "org.jsonschema2pojo" version "1.3.3"
}

repositories {
  mavenCentral()
}

jsonSchema2Pojo {
  targetPackage = 'com.example'
}

Useful pages:

Project resources:

Special thanks:

  • unkish
  • Thach Hoang
  • Dan Cruver
  • Ben Manes
  • Sam Duke
  • Duane Zamrok
  • Christian Trimble
  • YourKit, who support this project through a free license for the YourKit Java Profiler.

Licensed under the Apache License, Version 2.0.

评论

暂无评论