|
5 | 5 | <parent> |
6 | 6 | <groupId>org.springframework.boot</groupId> |
7 | 7 | <artifactId>spring-boot-starter-parent</artifactId> |
8 | | - <version>3.5.0</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> |
|
36 | 24 | </dependency> |
37 | 25 | <dependency> |
38 | 26 | <groupId>org.springframework.boot</groupId> |
39 | | - <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 27 | + <artifactId>spring-boot-starter-test</artifactId> |
| 28 | + <scope>test</scope> |
40 | 29 | </dependency> |
41 | 30 | <dependency> |
42 | 31 | <groupId>org.springframework.boot</groupId> |
43 | 32 | <artifactId>spring-boot-starter-web</artifactId> |
44 | 33 | </dependency> |
45 | | - <dependency> |
46 | | - <groupId>org.flywaydb</groupId> |
47 | | - <artifactId>flyway-core</artifactId> |
48 | | - </dependency> |
49 | | - <dependency> |
50 | | - <groupId>com.h2database</groupId> |
51 | | - <artifactId>h2</artifactId> |
52 | | - <scope>runtime</scope> |
53 | | - </dependency> |
54 | | - <dependency> |
55 | | - <groupId>org.projectlombok</groupId> |
56 | | - <artifactId>lombok</artifactId> |
57 | | - <optional>true</optional> |
58 | | - </dependency> |
59 | | - <dependency> |
60 | | - <groupId>org.springframework.boot</groupId> |
61 | | - <artifactId>spring-boot-starter-test</artifactId> |
62 | | - <scope>test</scope> |
63 | | - </dependency> |
64 | 34 | </dependencies> |
65 | 35 |
|
66 | 36 | <build> |
67 | 37 | <plugins> |
68 | | - <plugin> |
69 | | - <groupId>org.apache.maven.plugins</groupId> |
70 | | - <artifactId>maven-compiler-plugin</artifactId> |
71 | | - <configuration> |
72 | | - <annotationProcessorPaths> |
73 | | - <path> |
74 | | - <groupId>org.projectlombok</groupId> |
75 | | - <artifactId>lombok</artifactId> |
76 | | - </path> |
77 | | - </annotationProcessorPaths> |
78 | | - </configuration> |
79 | | - </plugin> |
| 38 | + <!-- |
| 39 | + Not strictly mandatory, but in most Maven-based Spring Boot projects, it's highly recommended, |
| 40 | + because it simplifies packaging and deployment. |
| 41 | + The spring-boot-maven-plugin enables packaging the application as an executable JAR, |
| 42 | + which includes all dependencies and a manifest pointing to the main class. |
| 43 | + It simplifies running the app via `java -jar` and integrates with Maven's lifecycle. |
| 44 | + This plugin is essential for deploying Spring Boot applications and supports features |
| 45 | + like layered JARs for Docker and custom packaging. |
| 46 | + --> |
80 | 47 | <plugin> |
81 | 48 | <groupId>org.springframework.boot</groupId> |
82 | 49 | <artifactId>spring-boot-maven-plugin</artifactId> |
83 | | - <configuration> |
84 | | - <excludes> |
85 | | - <exclude> |
86 | | - <groupId>org.projectlombok</groupId> |
87 | | - <artifactId>lombok</artifactId> |
88 | | - </exclude> |
89 | | - </excludes> |
90 | | - </configuration> |
91 | | - </plugin> |
92 | | - <plugin> |
93 | | - <groupId>org.apache.maven.plugins</groupId> |
94 | | - <artifactId>maven-surefire-plugin</artifactId> |
95 | | - <version>3.5.3</version> |
96 | | - </plugin> |
97 | | - <plugin> |
98 | | - <groupId>org.apache.maven.plugins</groupId> |
99 | | - <artifactId>maven-failsafe-plugin</artifactId> |
100 | | - <version>3.5.3</version> |
101 | | - <executions> |
102 | | - <execution> |
103 | | - <goals> |
104 | | - <goal>integration-test</goal> |
105 | | - <goal>verify</goal> |
106 | | - </goals> |
107 | | - </execution> |
108 | | - </executions> |
109 | | - </plugin> |
110 | | - <plugin> |
111 | | - <groupId>org.apache.maven.plugins</groupId> |
112 | | - <artifactId>maven-surefire-report-plugin</artifactId> |
113 | | - <version>3.5.3</version> |
114 | | - <executions> |
115 | | - <execution> |
116 | | - <phase>verify</phase> |
117 | | - <goals> |
118 | | - <goal>report-only</goal> |
119 | | - </goals> |
120 | | - </execution> |
121 | | - </executions> |
122 | | - <configuration> |
123 | | - <aggregate>true</aggregate> |
124 | | - </configuration> |
125 | 50 | </plugin> |
126 | 51 | </plugins> |
127 | 52 | </build> |
|
0 commit comments