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