Skip to content

Commit 1140f7d

Browse files
committed
fix: added profile configuration
1 parent 4238e27 commit 1140f7d

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

pom.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,61 @@
124124
</configuration>
125125
</plugin>
126126
</plugins>
127+
<resources>
128+
<resource>
129+
<!-- For application files which use maven config data -->
130+
<directory>src/main/resources</directory>
131+
<filtering>true</filtering>
132+
</resource>
133+
</resources>
127134
</build>
135+
<profiles>
136+
<profile>
137+
<id>dev</id>
138+
<activation>
139+
<activeByDefault>true</activeByDefault>
140+
</activation>
141+
<properties>
142+
<spring.profiles.active>dev</spring.profiles.active>
143+
</properties>
144+
</profile>
145+
<profile>
146+
<id>prod</id>
147+
<properties>
148+
<spring.profiles.active>prod</spring.profiles.active>
149+
</properties>
150+
</profile>
151+
<profile>
152+
<id>coverage</id>
153+
<build>
154+
<plugins>
155+
<plugin>
156+
<groupId>org.jacoco</groupId>
157+
<artifactId>jacoco-maven-plugin</artifactId>
158+
<version>0.8.11</version>
159+
<executions>
160+
<execution>
161+
<id>prepare-agent</id>
162+
<goals>
163+
<goal>prepare-agent</goal>
164+
</goals>
165+
</execution>
166+
<execution>
167+
<id>report</id>
168+
<goals>
169+
<goal>report</goal>
170+
</goals>
171+
<configuration>
172+
<formats>
173+
<format>XML</format>
174+
</formats>
175+
</configuration>
176+
</execution>
177+
</executions>
178+
</plugin>
179+
</plugins>
180+
</build>
181+
</profile>
182+
</profiles>
128183

129184
</project>

0 commit comments

Comments
 (0)