Jsonix Schema Compiler Project

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Лицензия

Лицензия

Категории

Категории

JSON Данные
Группа

Группа

org.hisrc.jsonix
Идентификатор

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

jsonix-schema-compiler-project
Последняя версия

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

2.3.9
Дата

Дата

Тип

Тип

pom
Описание

Описание

Jsonix Schema Compiler Project
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Ссылка на сайт

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

https://github.com/highsource/jsonix-schema-compiler
Организация-разработчик

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

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

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

https://github.com/highsource/jsonix-schema-compiler

Скачать jsonix-schema-compiler-project

Имя Файла Размер
jsonix-schema-compiler-project-2.3.9.pom 11 KB
Обзор

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

<!-- https://jarcasting.com/artifacts/org.hisrc.jsonix/jsonix-schema-compiler-project/ -->
<dependency>
    <groupId>org.hisrc.jsonix</groupId>
    <artifactId>jsonix-schema-compiler-project</artifactId>
    <version>2.3.9</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.hisrc.jsonix/jsonix-schema-compiler-project/
implementation 'org.hisrc.jsonix:jsonix-schema-compiler-project:2.3.9'
// https://jarcasting.com/artifacts/org.hisrc.jsonix/jsonix-schema-compiler-project/
implementation ("org.hisrc.jsonix:jsonix-schema-compiler-project:2.3.9")
'org.hisrc.jsonix:jsonix-schema-compiler-project:pom:2.3.9'
<dependency org="org.hisrc.jsonix" name="jsonix-schema-compiler-project" rev="2.3.9">
  <artifact name="jsonix-schema-compiler-project" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.hisrc.jsonix', module='jsonix-schema-compiler-project', version='2.3.9')
)
libraryDependencies += "org.hisrc.jsonix" % "jsonix-schema-compiler-project" % "2.3.9"
[org.hisrc.jsonix/jsonix-schema-compiler-project "2.3.9"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

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

  • compiler
  • plugin
  • full
  • npm

Jsonix Schema Compiler

Generates Jsonix mappings for XML Schemas.

Please refer to Wiki for documentation.

Using in command-line

Download jsonix-schema-compiler-full-<VERSION>.jar from releases and run it with java -jar from the command line:

java -jar jsonix-schema-compiler-full-<VERSION>.jar
  [-compact -logLevel TRACE]
  schema.xsd
  [-b bindings.xjb]

See Command-Line Usage.

Using with NPM

From the command line:

npm install jsonix-schema-compiler
java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar schema.xsd

Or add jsonix-schema-compiler as dependency and invoke in scripts/prepublish.

 {
    "name": "mypackage",
    ...
    "dependencies": {
        ...
        "jsonix": "<VERSION>",
        "jsonix-schema-compiler": "<VERSION>"
    },
    "scripts": {
    	...
        "prepublish" : "java -jar node_modules/jsonix/lib/jsonix-schema-compiler-full.jar schema.xsd"
    }
}

See NPM Usage.

Using with Ant

  • Include jsonix-schema-compiler-plugin-<VERSION>.jar into xjc/classpath.
  • Include -Xjsonix and further -Xjsonix-... [[command-line options|Command-Line usage]] into arg/@line.
<xjc destdir="${basedir}/target/generated-sources/xjc" extension="true">
  <arg line="-Xjsonix -Xjsonix-compact"/>
  <binding dir="${basedir}/src/main/resources">
     <include name="**/*.xjb"/>
  </binding>
  <schema dir="${basedir}/src/main/resources">
     <include name="**/*.xsd"/>
  </schema>
  <!-- Plugins -->
  <classpath>
    <fileset dir="${basedir}/lib">
      <include name="jsonix-*.jar"/>
    </fileset>
  </classpath>
</xjc>

See Ant Usage.

Using with Maven

<plugin>
	<groupId>org.jvnet.jaxb2.maven2</groupId>
	<artifactId>maven-jaxb2-plugin</artifactId>
	<configuration>
		<extension>true</extension>
		<args>
			<arg>-Xjsonix</arg>
			<arg>-Xjsonix-compact</arg>
		</args>
		<plugins>
			<plugin>
				<groupId>org.hisrc.jsonix</groupId>
				<artifactId>jsonix-schema-compiler</artifactId>
				<version>${jsonix-schema-compiler.version}</version>
			</plugin>
		</plugins>
	</configuration>
</plugin>

See Maven Usage.

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

Версия
2.3.9
2.3.8
2.3.7
2.3.6
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.0
2.1.1
2.1.0
2.0.11