Jsonix Schema Compiler Full

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

Лицензия

Лицензия

Категории

Категории

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

Группа

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

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

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

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

2.3.9
Дата

Дата

Тип

Тип

jar
Описание

Описание

Jsonix Schema Compiler Full
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Организация-разработчик

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

Highsource

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

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

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

Зависимости

test (1)

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

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

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

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.0
2.2.0
2.1.1
2.1.0
2.0.11