Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.1 KB

building.md

File metadata and controls

35 lines (21 loc) · 1.1 KB

Building from source

Ensure you have JDK 17 and Git installed

java -version
git --version

First clone the beehive repository:

git clone https://github.com/dipak101505/Beehive.git
cd beehive-backend

To build beehive run:

mvn clean install

Starting beehive

To start beehive during development first build as specified above, then run:

java -jar target/Beehive-Backend-0.0.1-SNAPSHOT.jar start-dev

To stop the server press Ctrl + C.

Working with the codebase

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.