Continuous Integration

At latest when you work with mature generators and the people who model know what they are doing, you should integrate the code generation in your automated build process. In principle the generation should be integrated in the following way:

  • check out the code from the code repository
  • run the generators
  • commit the generated code
  • only then run the “real” build (compile, test, etc.)


The continuous integration configuration (e.g. in pom.xml for Apache maven) has to have the correct generation project being configured, the one that uses the desired generator version. For released versions of your software project you do not need the automated generation anymore. So please make sure that for released versions the code generation gets removed from the continuous build configuration.