From 0254900b12b56bee70b6890a685b573b07a4ff5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Muzik=C3=A1=C5=99?= Date: Tue, 30 Aug 2022 16:59:36 +0200 Subject: [PATCH] Document how to build from IDE (#14093) --- docs/building.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/building.md b/docs/building.md index abdf9ae7467..fcc28f6b494 100644 --- a/docs/building.md +++ b/docs/building.md @@ -82,3 +82,21 @@ If your changes require updates to the database read [Updating Database Schema]( If your changes require introducing new dependencies or updating dependency versions please discuss this first on the dev mailing list. We do not accept new dependencies to be added lightly, so try to use what is available. + +### Building project from the IDE + +Some parts of the project rely on generated code using Maven plugins. These steps might be skipped when building using +IDE resulting in compilation errors. To work around this make sure to build the project first using Maven. After the +initial build with Maven you should be able to build the project using the IDE as it will use the classes previously +generated by Maven plugins. Make sure you don't rebuild the whole project using the IDE as it would delete the generated +classes. E.g. in IntelliJ IDEA use `Build → Build Project` instead of `Build → Rebuild Project`. + +--- +**NOTE** + +If you are building the Operator from your IDE, make sure to build the project with the `operator` profile enabled in Maven +as it's excluded by default: + + mvn clean install -Poperator -DskipTests + +--- \ No newline at end of file