|
26 | 26 | <version>${spring.boot.version}</version> |
27 | 27 | </dependency> |
28 | 28 |
|
29 | | - <!-- JUnit 5 (Unit & Integration Tests) --> |
| 29 | + <!-- JUnit 5 --> |
30 | 30 | <dependency> |
31 | 31 | <groupId>org.springframework.boot</groupId> |
32 | 32 | <artifactId>spring-boot-starter-test</artifactId> |
|
38 | 38 | <build> |
39 | 39 | <plugins> |
40 | 40 |
|
41 | | - <!-- Spring Boot Maven Plugin --> |
| 41 | + <!-- ✅ Spring Boot Plugin (auto repackage during mvn package) --> |
42 | 42 | <plugin> |
43 | 43 | <groupId>org.springframework.boot</groupId> |
44 | 44 | <artifactId>spring-boot-maven-plugin</artifactId> |
45 | 45 | <version>${spring.boot.version}</version> |
| 46 | + <executions> |
| 47 | + <execution> |
| 48 | + <goals> |
| 49 | + <goal>repackage</goal> |
| 50 | + </goals> |
| 51 | + </execution> |
| 52 | + </executions> |
46 | 53 | </plugin> |
47 | 54 |
|
48 | 55 | <!-- Maven Compiler Plugin --> |
|
57 | 64 | </configuration> |
58 | 65 | </plugin> |
59 | 66 |
|
60 | | - <!-- Maven Surefire Plugin for Unit Tests --> |
| 67 | + <!-- Surefire for Unit Tests --> |
61 | 68 | <plugin> |
62 | 69 | <groupId>org.apache.maven.plugins</groupId> |
63 | 70 | <artifactId>maven-surefire-plugin</artifactId> |
|
70 | 77 | </configuration> |
71 | 78 | </plugin> |
72 | 79 |
|
73 | | - <!-- Maven Failsafe Plugin for Integration Tests --> |
| 80 | + <!-- Failsafe for Integration Tests --> |
74 | 81 | <plugin> |
75 | 82 | <groupId>org.apache.maven.plugins</groupId> |
76 | 83 | <artifactId>maven-failsafe-plugin</artifactId> |
|
92 | 99 | </executions> |
93 | 100 | </plugin> |
94 | 101 |
|
95 | | - <!-- JaCoCo Plugin for Coverage --> |
| 102 | + <!-- JaCoCo for coverage --> |
96 | 103 | <plugin> |
97 | 104 | <groupId>org.jacoco</groupId> |
98 | 105 | <artifactId>jacoco-maven-plugin</artifactId> |
99 | 106 | <version>${jacoco.version}</version> |
100 | 107 | <executions> |
101 | | - <!-- Prepare agent before tests --> |
102 | 108 | <execution> |
103 | 109 | <id>prepare-agent</id> |
104 | 110 | <goals> |
105 | 111 | <goal>prepare-agent</goal> |
106 | 112 | </goals> |
107 | 113 | </execution> |
108 | | - <!-- Generate coverage report after tests --> |
109 | 114 | <execution> |
110 | 115 | <id>report</id> |
111 | 116 | <phase>verify</phase> |
|
0 commit comments