mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
106 stars 77 forks source link

xjc targets not regenerated when target/generated-sources deleted #64

Open GaryAitken opened 7 years ago

GaryAitken commented 7 years ago

If target/generated-sources is deleted but .xsd files aren't touched, the targets are not regenerated. Instead, you get the message:

[INFO] No changes detected in schema or binding files - skipping JAXB generation.

ghost commented 6 years ago

Issue could be that the xjcstaleflag file is somehow present in the target folder..manually removing that and setting could solve the issue for the 1 next compile/code generation

ghost commented 5 years ago

@GaryAitken you might be running into #35 which was fixed by 2.3. I was having the same problem with an older version (2.2).