Jsonix Schema Compiler Full

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-full
Last Version

Last Version

2.3.9
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project Organization

Highsource

Download jsonix-schema-compiler-full

How to add to project

<!-- 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"]

Dependencies

test (1)

Group / Artifact Type Version
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.0
2.2.0
2.1.1
2.1.0
2.0.11