Skip to content

Skip maven code generation if source file is unchanged #1501

@rasmusfaber

Description

@rasmusfaber
Description

When using the Maven task the generator always runs, even if the source file is unchanged.

It would be nice to skip the generation, if there have been no changes.

openapi-generator version

3.3.3 / 3.3.4-SNAPSHOT

Steps to reproduce

Run maven compile twice in a row, notice that the generator always run, even if there have been no changes.

Suggest a fix/enhancement

It might be difficult to track the state, including the maven-options, but if we just compare the timestamp of the source file and the output file, it should be close enough, as long as the skip is not per default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions