json-schema-plugin Maven Mojo

Creates JSON Schema files in Mavens output directory for classes.

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка JSON Данные
Группа

Группа

de.isc-software.maven
Идентификатор

Идентификатор

json-schema-maven-plugin
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

json-schema-plugin Maven Mojo
Creates JSON Schema files in Mavens output directory for classes.
Ссылка на сайт

Ссылка на сайт

https://github.com/bernd-clemenz/json-schema-maven-plugin
Организация-разработчик

Организация-разработчик

ISC Clemenz & Weinbrecht GmbH
Система контроля версий

Система контроля версий

https://github.com/bernd-clemenz/json-schema-maven-plugin

Скачать json-schema-maven-plugin

Имя Файла Размер
json-schema-maven-plugin-1.0.0.pom -1 bytes
Обзор

Как подключить последнюю версию

<plugin>
    <groupId>de.isc-software.maven</groupId>
    <artifactId>json-schema-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
com.fasterxml.jackson.core : jackson-core jar 2.10.0
com.fasterxml.jackson.core : jackson-databind jar 2.10.0
com.fasterxml.jackson.core : jackson-annotations jar 2.10.0
com.fasterxml.jackson.datatype : jackson-datatype-jdk8 jar 2.10.0
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.10.0
com.fasterxml.jackson.module : jackson-module-jsonSchema jar 2.10.0.pr3
org.apache.commons : commons-lang3 jar 3.9
org.reflections : reflections jar 0.9.11

provided (5)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.5.3
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0
org.apache.maven : maven-model jar 3.6.2
org.apache.maven : maven-core jar 3.6.2
org.apache.maven : maven-artifact jar 3.6.2

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0

Модули Проекта

Данный проект не имеет модулей.

JSON Schema file generator

This Maven plugin generates JSON-Schema files from POJOs using Jackson.

Prerequisites

  • Java 8 or higher
  • Maven 3.6.2 or higher
  • Jackson in dependencies
  • Model classes annotated with @HyperSchema

Usage

<plugins>
  <!-- your other plugins -->
  <plugin>
    <groupId>de.isc-software.maven</groupId>
    <artifactId>json-schema-maven-plugin</artifactId>
    <version>1.0.0</version>
    <configuration>
      <packagesToScan>
        <item>your.domain</item>
        <item>your.other.domain</item>
      </packagesToScan>
      <baseClassName>your.domain.base.Thing</baseClassName>
      <outputDirectory>META-INF/json-schema</outputDirectory>
    </configuration>
    <executions>
      <execution>
        <id>build-json-schema</id>
        <phase>process-classes</phase>
        <goals>
          <goal>json-schema</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
</plugins>

Goals and phase

  • json-schema is the only goal.
  • process-classes is the mandatory lifecycle phase for this plugin.

Configuration

Name Description
packagesToScan A list of packages, where your model classes exist
baseClassName Fully qualified name of the base class of your model classes
outputDirectory Output directory name, relative to Mavens output path

History

Created for use in some RESTFull API projects, where it proofed helpful.

Notes

For release in Maven repository create signatures:

gpg -ab json-schema-maven-plugin-VERSION.jar
gpg -ab json-schema-maven-plugin-VERSION-javadoc.jar
gpg -ab json-schema-maven-plugin-VERSION-sources.jar

Версии библиотеки

Версия
1.0.0