|
@@ -144,7 +144,23 @@
|
144
|
144
|
<activation>
|
145
|
145
|
<activeByDefault>true</activeByDefault>
|
146
|
146
|
</activation>
|
|
147
|
+
|
|
148
|
+ <build>
|
|
149
|
+ <plugins>
|
|
150
|
+ <plugin>
|
|
151
|
+ <groupId>org.springframework.boot</groupId>
|
|
152
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
153
|
+ </plugin>
|
|
154
|
+ </plugins>
|
|
155
|
+ <resources>
|
|
156
|
+ <resource>
|
|
157
|
+ <directory>src/main/resources</directory>
|
|
158
|
+ <filtering>true</filtering>
|
|
159
|
+ </resource>
|
|
160
|
+ </resources>
|
|
161
|
+ </build>
|
147
|
162
|
</profile>
|
|
163
|
+
|
148
|
164
|
<profile>
|
149
|
165
|
<id>prod</id>
|
150
|
166
|
<properties>
|
|
@@ -153,44 +169,45 @@
|
153
|
169
|
<activation>
|
154
|
170
|
<activeByDefault>false</activeByDefault>
|
155
|
171
|
</activation>
|
|
172
|
+
|
|
173
|
+ <build>
|
|
174
|
+ <plugins>
|
|
175
|
+ <plugin>
|
|
176
|
+ <groupId>org.springframework.boot</groupId>
|
|
177
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
178
|
+ </plugin>
|
|
179
|
+
|
|
180
|
+ <!-- 跳过测试 -->
|
|
181
|
+ <plugin>
|
|
182
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
183
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
184
|
+ <configuration>
|
|
185
|
+ <skipTests>true</skipTests>
|
|
186
|
+ <testFailureIgnore>true</testFailureIgnore>
|
|
187
|
+ </configuration>
|
|
188
|
+ </plugin>
|
|
189
|
+ </plugins>
|
|
190
|
+ <resources>
|
|
191
|
+ <resource>
|
|
192
|
+ <directory>src/main/resources</directory>
|
|
193
|
+ <filtering>true</filtering>
|
|
194
|
+ <excludes>
|
|
195
|
+ <exclude>application.yml</exclude>
|
|
196
|
+ <exclude>application-*.yml</exclude>
|
|
197
|
+ </excludes>
|
|
198
|
+ </resource>
|
|
199
|
+ <resource>
|
|
200
|
+ <directory>src/main/resources</directory>
|
|
201
|
+ <filtering>true</filtering>
|
|
202
|
+ <includes>
|
|
203
|
+ <include>application.yml</include>
|
|
204
|
+ <include>application-${profileActive}.yml</include>
|
|
205
|
+ </includes>
|
|
206
|
+ <targetPath>${project.build.directory}/config</targetPath>
|
|
207
|
+ </resource>
|
|
208
|
+ </resources>
|
|
209
|
+ </build>
|
156
|
210
|
</profile>
|
157
|
211
|
</profiles>
|
158
|
212
|
|
159
|
|
- <build>
|
160
|
|
- <plugins>
|
161
|
|
- <plugin>
|
162
|
|
- <groupId>org.springframework.boot</groupId>
|
163
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
164
|
|
- </plugin>
|
165
|
|
-
|
166
|
|
- <!-- 跳过测试 -->
|
167
|
|
- <plugin>
|
168
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
169
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
170
|
|
- <configuration>
|
171
|
|
- <skipTests>true</skipTests>
|
172
|
|
- <testFailureIgnore>true</testFailureIgnore>
|
173
|
|
- </configuration>
|
174
|
|
- </plugin>
|
175
|
|
- </plugins>
|
176
|
|
- <resources>
|
177
|
|
- <resource>
|
178
|
|
- <directory>src/main/resources</directory>
|
179
|
|
- <filtering>true</filtering>
|
180
|
|
- <excludes>
|
181
|
|
- <exclude>application-*.yml</exclude>
|
182
|
|
- </excludes>
|
183
|
|
- </resource>
|
184
|
|
- <resource>
|
185
|
|
- <directory>src/main/resources</directory>
|
186
|
|
- <filtering>true</filtering>
|
187
|
|
- <includes>
|
188
|
|
- <include>application.yml</include>
|
189
|
|
- <include>application-${profileActive}.yml</include>
|
190
|
|
- </includes>
|
191
|
|
- <targetPath>${project.build.directory}/config</targetPath>
|
192
|
|
- </resource>
|
193
|
|
- </resources>
|
194
|
|
- </build>
|
195
|
|
-
|
196
|
213
|
</project>
|