Skip to content

Commit 712ea37

Browse files
Update pom.xml
1 parent 3ecf3f5 commit 712ea37

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

pom.xml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<version>${spring.boot.version}</version>
2727
</dependency>
2828

29-
<!-- JUnit 5 (Unit & Integration Tests) -->
29+
<!-- JUnit 5 -->
3030
<dependency>
3131
<groupId>org.springframework.boot</groupId>
3232
<artifactId>spring-boot-starter-test</artifactId>
@@ -38,11 +38,18 @@
3838
<build>
3939
<plugins>
4040

41-
<!-- Spring Boot Maven Plugin -->
41+
<!-- Spring Boot Plugin (auto repackage during mvn package) -->
4242
<plugin>
4343
<groupId>org.springframework.boot</groupId>
4444
<artifactId>spring-boot-maven-plugin</artifactId>
4545
<version>${spring.boot.version}</version>
46+
<executions>
47+
<execution>
48+
<goals>
49+
<goal>repackage</goal>
50+
</goals>
51+
</execution>
52+
</executions>
4653
</plugin>
4754

4855
<!-- Maven Compiler Plugin -->
@@ -57,7 +64,7 @@
5764
</configuration>
5865
</plugin>
5966

60-
<!-- Maven Surefire Plugin for Unit Tests -->
67+
<!-- Surefire for Unit Tests -->
6168
<plugin>
6269
<groupId>org.apache.maven.plugins</groupId>
6370
<artifactId>maven-surefire-plugin</artifactId>
@@ -70,7 +77,7 @@
7077
</configuration>
7178
</plugin>
7279

73-
<!-- Maven Failsafe Plugin for Integration Tests -->
80+
<!-- Failsafe for Integration Tests -->
7481
<plugin>
7582
<groupId>org.apache.maven.plugins</groupId>
7683
<artifactId>maven-failsafe-plugin</artifactId>
@@ -92,20 +99,18 @@
9299
</executions>
93100
</plugin>
94101

95-
<!-- JaCoCo Plugin for Coverage -->
102+
<!-- JaCoCo for coverage -->
96103
<plugin>
97104
<groupId>org.jacoco</groupId>
98105
<artifactId>jacoco-maven-plugin</artifactId>
99106
<version>${jacoco.version}</version>
100107
<executions>
101-
<!-- Prepare agent before tests -->
102108
<execution>
103109
<id>prepare-agent</id>
104110
<goals>
105111
<goal>prepare-agent</goal>
106112
</goals>
107113
</execution>
108-
<!-- Generate coverage report after tests -->
109114
<execution>
110115
<id>report</id>
111116
<phase>verify</phase>

0 commit comments

Comments
 (0)