swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

how to generate files only if the spec is changed?

Open kingluo opened this issue 7 years ago • 0 comments

Description

The maven plugin seems to re-generate files each time you re-run maven, no matter whether the input sepc file is changed (i.e. the last modification time is newer than any output files) or not, then it would make maven re-compile the generated files each time.

How to improve it? Just like what checkStaleness of protobuf-maven-plugin does.

kingluo avatar Aug 05 '18 18:08 kingluo