I've just setup a Maven-based Spring Boot project in IntelliJ (without delegating commands to Maven itself) containing jOOQ and Flyway that I intend to run before every build. Running mvn compile
via the command line yields the correct behavior since both plugins do register themselves to the correct lifecycle phase.
However when setting the Before Build
trigger in IntelliJ like this I end up with an unexpected behavior:
When invoking the build process via the menu or the menubar button both the compiler and the code generation are started and running in parallel. The result is that the compiler throws errors that are automatically resolved just moments later. The compilation inside of IntelliJ does not wait for the Maven process to finish in the first place.
Is there any option to make IntelliJ's build process aware of the Maven progress?
compile
lifecycle from within the Maven window - however when invoking a debug session IntelliJ compiles the files for a second time. – Christian Ivicevic Mar 19 '20 at 18:18