Skip to content

tpd-opitz/maven-jaxb22-plugin-attribute-default-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Plugin fail for attribute default values

In my projects I generate Java classes from XSD files.

so far I used org.codehouse.mojo:jaxb2-mave-plugin:1.5

Since I need to introduce Java8 property bindings I changed to org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1.

I ran into the problem that this plugin does not respect the default value for an attribute as given in <xs:attribute default=""> .

The sample project here demonstrates the wrong behavior. The expectation is that the JUnitTest provided should pass but it doesn't.

TPD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages