Reputation: 1591
I want maven to skip generation of something (source, XML, XSDs - you name it - ) if the source of that thing has not changed.
Something like - IF the all files in src/main/x are younger than all files in target/generated-sources - THEN skip generation
Upvotes: 2
Views: 155
Reputation: 1591
So far, the only solution I have come up with is to modify my code generators. This will work when the generator is mine, and will not when the generator is not (eg: wsimport or jaxb generators etc).
Ideally, I am looking for a way, or plugin, that will test all source files that are fed into the generators to see if any have changed. ie: Get the greatest LastChangedTime from all of the source files and compare that to the smallest (oldest) LastChangedTime in all of the generated sources.
Upvotes: 0