|
5 | 5 | <parent> |
6 | 6 | <groupId>org.springframework.boot</groupId> |
7 | 7 | <artifactId>spring-boot-starter-parent</artifactId> |
8 | | - <version>3.4.4</version> |
| 8 | + <version>3.5.6</version> |
9 | 9 | <relativePath/> <!-- lookup parent from repository --> |
10 | 10 | </parent> |
11 | 11 | <groupId>com.capgemini.training</groupId> |
12 | | - <artifactId>appointment-booking-app</artifactId> |
| 12 | + <artifactId>appointment-booking</artifactId> |
13 | 13 | <version>0.0.1-SNAPSHOT</version> |
14 | | - <name>appointment-booking-app</name> |
| 14 | + <name>appointment-booking</name> |
15 | 15 | <description>Demo project for Spring Boot</description> |
16 | | - <url/> |
17 | | - <licenses> |
18 | | - <license/> |
19 | | - </licenses> |
20 | | - <developers> |
21 | | - <developer/> |
22 | | - </developers> |
23 | | - <scm> |
24 | | - <connection/> |
25 | | - <developerConnection/> |
26 | | - <tag/> |
27 | | - <url/> |
28 | | - </scm> |
| 16 | + |
29 | 17 | <properties> |
30 | 18 | <java.version>21</java.version> |
31 | 19 | </properties> |
32 | 20 | <dependencies> |
| 21 | + <!-- 1) Dependencies to run the application on web-server + features to help monitor and manage a Spring Boot application: --> |
| 22 | + <dependency> |
| 23 | + <groupId>org.springframework.boot</groupId> |
| 24 | + <artifactId>spring-boot-starter-test</artifactId> |
| 25 | + <scope>test</scope> |
| 26 | + </dependency> |
33 | 27 | <dependency> |
34 | 28 | <groupId>org.springframework.boot</groupId> |
35 | 29 | <artifactId>spring-boot-starter-actuator</artifactId> |
36 | 30 | </dependency> |
37 | | - <dependency> |
38 | | - <groupId>org.springframework.boot</groupId> |
39 | | - <artifactId>spring-boot-starter-data-jpa</artifactId> |
40 | | - </dependency> |
41 | 31 | <dependency> |
42 | 32 | <groupId>org.springframework.boot</groupId> |
43 | 33 | <artifactId>spring-boot-starter-web</artifactId> |
44 | 34 | </dependency> |
| 35 | + |
| 36 | + <!-- 2) Dependencies to provide data access layer and H2 in-memory database: --> |
| 37 | + <dependency> |
| 38 | + <groupId>org.springframework.boot</groupId> |
| 39 | + <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>com.h2database</groupId> |
| 43 | + <artifactId>h2</artifactId> |
| 44 | + <scope>runtime</scope> |
| 45 | + </dependency> |
45 | 46 | <dependency> |
46 | 47 | <groupId>org.flywaydb</groupId> |
47 | 48 | <artifactId>flyway-core</artifactId> |
48 | 49 | </dependency> |
49 | | - <dependency> |
50 | | - <groupId>com.h2database</groupId> |
51 | | - <artifactId>h2</artifactId> |
52 | | - <version>2.2.224</version> |
53 | | - <scope>runtime</scope> |
54 | | - </dependency> |
55 | 50 | <dependency> |
56 | 51 | <groupId>org.projectlombok</groupId> |
57 | 52 | <artifactId>lombok</artifactId> |
58 | 53 | <optional>true</optional> |
59 | 54 | </dependency> |
60 | | - <dependency> |
61 | | - <groupId>org.springframework.boot</groupId> |
62 | | - <artifactId>spring-boot-starter-test</artifactId> |
63 | | - <scope>test</scope> |
64 | | - </dependency> |
65 | 55 | </dependencies> |
66 | 56 |
|
67 | 57 | <build> |
68 | 58 | <plugins> |
69 | | - <plugin> |
70 | | - <groupId>org.apache.maven.plugins</groupId> |
71 | | - <artifactId>maven-compiler-plugin</artifactId> |
72 | | - <configuration> |
73 | | - <annotationProcessorPaths> |
74 | | - <path> |
75 | | - <groupId>org.projectlombok</groupId> |
76 | | - <artifactId>lombok</artifactId> |
77 | | - </path> |
78 | | - </annotationProcessorPaths> |
79 | | - </configuration> |
80 | | - </plugin> |
| 59 | + <!-- |
| 60 | + Not strictly mandatory, but in most Maven-based Spring Boot projects, it's highly recommended, |
| 61 | + because it simplifies packaging and deployment. |
| 62 | + The spring-boot-maven-plugin enables packaging the application as an executable JAR, |
| 63 | + which includes all dependencies and a manifest pointing to the main class. |
| 64 | + It simplifies running the app via `java -jar` and integrates with Maven's lifecycle. |
| 65 | + This plugin is essential for deploying Spring Boot applications and supports features |
| 66 | + like layered JARs for Docker and custom packaging. |
| 67 | + --> |
81 | 68 | <plugin> |
82 | 69 | <groupId>org.springframework.boot</groupId> |
83 | 70 | <artifactId>spring-boot-maven-plugin</artifactId> |
|
0 commit comments