Hi Dominic,
there could be a couple of other options:
1. Define a profile that does not contain the models in the build resources, e.g.
<profiles>
<profile>
<id>no_model</id>
<build>
<resources>
<resource>
<directory>
{folder_without_models}
</directory>
</resource>
</resources>
</build>
</profile>
</profiles>
The rationale is that if models are not found during discovery, the model-specific codegeneration won't execute.
2. For Spring Boot applications, perhaps it's possible to create a profile to disable the kogito-maven-plugin
Please note:
I did not try any of them; it's just something that crossed my mind.
M2C
Bye
Gabriele