For further reference, please consider the following sections:
Due to Maven's design, elements are inherited from the parent POM to the project POM.
While most of the inheritance is fine, it also inherits unwanted elements like <license>
and <developers>
from the parent.
To prevent this, the project POM contains empty overrides for these elements.
If you manually switch to a different parent and actually want the inheritance, you need to remove those overrides.
To run the application, you can use the following command:
mvn spring-boot:run
This will start the application in the development profile and listen on port 8080.
You can access the application in your web browser by navigating to http://localhost:8080
.
To build the application, you can use the following command:
mvn clean package
This will create a JAR file in the target
directory with the name demo-0.0.1-SNAPSHOT.jar
.
You can then run the JAR file using the java
command:
java -jar target/demo-0.0.1-SNAPSHOT.jar
To deploy the application, you can use the following command:
mvn clean package spring-boot:build-image
This will create a Docker image with the name demo:0.0.1-SNAPSHOT
.
Swagger UI is available at http://localhost:8080/swagger-ui.html
For development, a Sqlite database is used. The database is created automatically when the application starts.
The database file is located at ./game_love.db
.