JAXB2 Jackson-helper

Plugin to add @XmlElement(nillable=false) if nillable=false and minoccurs=0 is set in xsd to help Jackson

License

License

Categories

Categories

Jackson Data JSON
GroupId

GroupId

no.digipost.jaxb
ArtifactId

ArtifactId

jaxb2-jackson-helper
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

JAXB2 Jackson-helper
Plugin to add @XmlElement(nillable=false) if nillable=false and minoccurs=0 is set in xsd to help Jackson
Project URL

Project URL

https://github.com/digipost/jaxb2-jackson-helper
Project Organization

Project Organization

Digipost
Source Code Management

Source Code Management

https://github.com/digipost/jaxb2-jackson-helper/

Download jaxb2-jackson-helper

How to add to project

<!-- https://jarcasting.com/artifacts/no.digipost.jaxb/jaxb2-jackson-helper/ -->
<dependency>
    <groupId>no.digipost.jaxb</groupId>
    <artifactId>jaxb2-jackson-helper</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/no.digipost.jaxb/jaxb2-jackson-helper/
implementation 'no.digipost.jaxb:jaxb2-jackson-helper:1.0'
// https://jarcasting.com/artifacts/no.digipost.jaxb/jaxb2-jackson-helper/
implementation ("no.digipost.jaxb:jaxb2-jackson-helper:1.0")
'no.digipost.jaxb:jaxb2-jackson-helper:jar:1.0'
<dependency org="no.digipost.jaxb" name="jaxb2-jackson-helper" rev="1.0">
  <artifact name="jaxb2-jackson-helper" type="jar" />
</dependency>
@Grapes(
@Grab(group='no.digipost.jaxb', module='jaxb2-jackson-helper', version='1.0')
)
libraryDependencies += "no.digipost.jaxb" % "jaxb2-jackson-helper" % "1.0"
[no.digipost.jaxb/jaxb2-jackson-helper "1.0"]

Dependencies

provided (3)

Group / Artifact Type Version
javax.xml.bind : jaxb-api jar 2.3.0
org.jvnet.jaxb2_commons : jaxb2-basics-jaxb-xjc jar 2.2.4-1
com.sun.codemodel : codemodel jar 2.4

Project Modules

There are no modules declared in this project.

Digipost JAXB2 Jackson Helper

Maven Central License

In order to help Jackson a bit, this JAXB2/XJC plugin will add @XmlElement(nillable=false) if nillable=false and minoccurs=0 is set in XSD.

Getting the plugin

If using Maven you will probably enable the plugin in the configuration of your JAXB2 plugin. For instance, if you use maven-jaxb2-plugin, this will enable the plugin in your build:

<plugin>
  <groupId>org.jvnet.jaxb2.maven2</groupId>
  <artifactId>maven-jaxb2-plugin</artifactId>
  <version><!-- TODO: Replace with newest compatible version number --></version>
  <configuration>
    <args>
      <arg>-Xjacksonfive</arg>
      ...
    </args>
    <plugins>
      <plugin>
        <groupId>no.digipost.jaxb</groupId>
        <artifactId>jaxb2-jackson-helper</artifactId>
        <version><!-- TODO: Replace with newest version number --></version>
      </plugin>
...

License

Digipost JAXB2 Jackson Helper is licensed under Apache 2.0

no.digipost.jaxb

Digipost

Digipost er Norges digitale postsystem utviklet av Posten Norge AS.

Versions

Version
1.0