Document how to build from IDE (#14093)

This commit is contained in:
Václav Muzikář 2022-08-30 16:59:36 +02:00 committed by GitHub
parent 94c74fca98
commit 0254900b12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 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. 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
---