Jsonix Schema Compiler

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

License

License

Categories

Categories

JSON Data
GroupId

GroupId

org.hisrc.jsonix
ArtifactId

ArtifactId

jsonix-schema-compiler
Last Version

Last Version

2.3.9
Release Date

Release Date

Type

Type

jar
Description

Description

Jsonix Schema Compiler
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project Organization

Project Organization

Highsource

Download jsonix-schema-compiler

How to add to project

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

Dependencies

compile (8)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.7
args4j : args4j jar 2.0.29
org.jvnet.jaxb2_commons : jaxb2-basics-runtime jar 0.11.0
org.jvnet.jaxb2_commons : jaxb2-basics-tools jar 0.11.0
org.jgrapht : jgrapht-core jar 0.9.0
org.hisrc.jscm : js-codemodel jar 1.1
org.glassfish : javax.json jar 1.0.4
javax.json : javax.json-api jar 1.0

provided (2)

Group / Artifact Type Version
org.glassfish.jaxb : jaxb-runtime jar 2.2.11
org.glassfish.jaxb : jaxb-xjc jar 2.2.11

test (2)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.7
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

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.

Versions

Version
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
2.0.1
2.0.0
1.2
1.0