Skip to content

digipost/jaxb2-jackson-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Plugin to add @xmlelement(nillable=false) if nillable=false and minoccurs=0 is set in XSD.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages