提交 | 用户 | age
|
707c81
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
C |
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
|
|
6 |
<properties> |
|
7 |
<dist>target/build</dist> |
|
8 |
<res>target/build/resources</res> |
|
9 |
<dist-tmp>target/build/tmp</dist-tmp> |
|
10 |
<app-name>${project.artifactId}-${project.version}</app-name> |
|
11 |
<real-app-name>${project.artifactId}</real-app-name> |
|
12 |
</properties> |
|
13 |
|
|
14 |
<parent> |
|
15 |
<groupId>com.hx</groupId> |
|
16 |
<artifactId>phi_platform</artifactId> |
|
17 |
<version>1.0-SNAPSHOT</version> |
|
18 |
</parent> |
|
19 |
|
b9da97
|
20 |
<artifactId>phi_platform_user</artifactId> |
707c81
|
21 |
<version>0.0.1-SNAPSHOT</version> |
C |
22 |
|
|
23 |
<dependencies> |
6d7416
|
24 |
<!--springCloud-nacos--> |
Z |
25 |
<dependency> |
|
26 |
<groupId>com.alibaba.cloud</groupId> |
|
27 |
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
|
28 |
<exclusions> |
|
29 |
<exclusion> |
|
30 |
<groupId>org.springframework.cloud</groupId> |
|
31 |
<artifactId>spring-cloud-starter-netflix-ribbon</artifactId> |
|
32 |
</exclusion> |
|
33 |
</exclusions> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>com.alibaba.cloud</groupId> |
|
37 |
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
|
38 |
</dependency> |
|
39 |
|
|
40 |
<dependency> |
|
41 |
<groupId>com.alibaba.cloud</groupId> |
|
42 |
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
|
43 |
<exclusions> |
|
44 |
<exclusion> |
|
45 |
<groupId>org.springframework.cloud</groupId> |
|
46 |
<artifactId>spring-cloud-starter-netflix-ribbon</artifactId> |
|
47 |
</exclusion> |
|
48 |
</exclusions> |
|
49 |
</dependency> |
|
50 |
<dependency> |
|
51 |
<groupId>com.alibaba.cloud</groupId> |
|
52 |
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
|
53 |
</dependency> |
|
54 |
|
|
55 |
<!--spring cloud的支持--> |
|
56 |
<dependency> |
|
57 |
<groupId>org.springframework.cloud</groupId> |
|
58 |
<artifactId>spring-cloud-starter-bootstrap</artifactId> |
|
59 |
</dependency> |
|
60 |
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-context --> |
|
61 |
<dependency> |
|
62 |
<groupId>org.springframework.cloud</groupId> |
|
63 |
<artifactId>spring-cloud-context</artifactId> |
|
64 |
</dependency> |
|
65 |
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-commons --> |
|
66 |
<dependency> |
|
67 |
<groupId>org.springframework.cloud</groupId> |
|
68 |
<artifactId>spring-cloud-commons</artifactId> |
|
69 |
</dependency> |
|
70 |
|
|
71 |
<!--openfeign的支持--> |
|
72 |
<dependency> |
|
73 |
<groupId>org.springframework.cloud</groupId> |
|
74 |
<artifactId>spring-cloud-starter-openfeign</artifactId> |
|
75 |
</dependency> |
|
76 |
<dependency> |
|
77 |
<groupId>org.springframework.cloud</groupId> |
|
78 |
<artifactId>spring-cloud-starter-loadbalancer</artifactId> |
|
79 |
</dependency> |
|
80 |
|
707c81
|
81 |
|
C |
82 |
<dependency> |
|
83 |
<groupId>org.springframework.boot</groupId> |
|
84 |
<artifactId>spring-boot-starter-log4j2</artifactId> |
|
85 |
</dependency> |
|
86 |
|
|
87 |
<dependency> |
|
88 |
<groupId>com.hx.gitee</groupId> |
|
89 |
<artifactId>hx-common</artifactId> |
|
90 |
<version>1.0-SNAPSHOT</version> |
|
91 |
</dependency> |
|
92 |
|
|
93 |
<dependency> |
|
94 |
<groupId>com.hx.gitee</groupId> |
|
95 |
<artifactId>phi_platform_common</artifactId> |
|
96 |
<version>1.0-SNAPSHOT</version> |
|
97 |
</dependency> |
|
98 |
|
|
99 |
<dependency> |
38cba9
|
100 |
<groupId>com.hx.gitee</groupId> |
c2090b
|
101 |
<artifactId>phi_platform_model</artifactId> |
C |
102 |
<version>1.0-SNAPSHOT</version> |
|
103 |
</dependency> |
|
104 |
|
|
105 |
<dependency> |
|
106 |
<groupId>com.hx.gitee</groupId> |
cf8e92
|
107 |
<artifactId>phi_platform_his</artifactId> |
C |
108 |
<version>1.0-SNAPSHOT</version> |
|
109 |
</dependency> |
|
110 |
|
|
111 |
<dependency> |
|
112 |
<groupId>com.hx.gitee</groupId> |
783245
|
113 |
<artifactId>phi_util_common</artifactId> |
38cba9
|
114 |
<version>0.0.1-SNAPSHOT</version> |
C |
115 |
</dependency> |
783245
|
116 |
|
14cede
|
117 |
<dependency> |
Z |
118 |
<groupId>com.hx.gitee</groupId> |
|
119 |
<artifactId>phi_method_common</artifactId> |
|
120 |
<version>0.0.1-SNAPSHOT</version> |
|
121 |
</dependency> |
38cba9
|
122 |
|
C |
123 |
<dependency> |
|
124 |
<groupId>com.hx.gitee</groupId> |
|
125 |
<artifactId>platform-common</artifactId> |
|
126 |
<version>1.0-SNAPSHOT</version> |
|
127 |
</dependency> |
|
128 |
|
|
129 |
<dependency> |
707c81
|
130 |
<groupId>com.hx.gitee</groupId> |
C |
131 |
<artifactId>hx-auto</artifactId> |
|
132 |
<version>2.0-SNAPSHOT</version> |
|
133 |
</dependency> |
b5b1b7
|
134 |
<dependency> |
Z |
135 |
<groupId>com.hz</groupId> |
|
136 |
<artifactId>phis-feign</artifactId> |
|
137 |
<version>1.0-SNAPSHOT</version> |
|
138 |
</dependency> |
eb9806
|
139 |
<dependency> |
Z |
140 |
<groupId>com.hz</groupId> |
|
141 |
<artifactId>crm-platform-feign</artifactId> |
|
142 |
<version>1.0-SNAPSHOT</version> |
|
143 |
</dependency> |
cb64c3
|
144 |
|
c187a2
|
145 |
<dependency> |
cb64c3
|
146 |
<groupId>com.hz</groupId> |
c187a2
|
147 |
<artifactId>phi-warehouse-feign</artifactId> |
F |
148 |
<version>1.0-SNAPSHOT</version> |
|
149 |
</dependency> |
707c81
|
150 |
|
C |
151 |
<dependency> |
cb64c3
|
152 |
<groupId>com.hz</groupId> |
W |
153 |
<artifactId>phi-sms-feign</artifactId> |
|
154 |
<version>1.0-SNAPSHOT</version> |
|
155 |
</dependency> |
|
156 |
|
|
157 |
<dependency> |
707c81
|
158 |
<groupId>com.alibaba</groupId> |
C |
159 |
<artifactId>druid-spring-boot-starter</artifactId> |
|
160 |
<version>1.1.23</version> |
|
161 |
</dependency> |
|
162 |
|
|
163 |
<dependency> |
|
164 |
<groupId>org.springframework.boot</groupId> |
|
165 |
<artifactId>spring-boot-starter-tomcat</artifactId> |
|
166 |
<!--<scope>provided</scope>--> |
|
167 |
</dependency> |
|
168 |
|
|
169 |
<!--数据监控平台(sql)--> |
|
170 |
<dependency> |
|
171 |
<groupId>com.alibaba</groupId> |
|
172 |
<artifactId>druid-spring-boot-starter</artifactId> |
|
173 |
</dependency> |
|
174 |
|
|
175 |
<!-- mybatis分页 --> |
|
176 |
<dependency> |
|
177 |
<groupId>com.github.pagehelper</groupId> |
|
178 |
<artifactId>pagehelper-spring-boot-starter</artifactId> |
|
179 |
<!--排除使用logback日志--> |
|
180 |
<exclusions> |
|
181 |
<exclusion> |
|
182 |
<artifactId>logback-classic</artifactId> |
|
183 |
<groupId>ch.qos.logback</groupId> |
|
184 |
</exclusion> |
|
185 |
<exclusion> |
|
186 |
<groupId>org.springframework.boot</groupId> |
|
187 |
<artifactId>spring-boot-starter-logging</artifactId> |
|
188 |
</exclusion> |
|
189 |
</exclusions> |
|
190 |
</dependency> |
|
191 |
|
|
192 |
<dependency> |
|
193 |
<groupId>org.springframework.boot</groupId> |
|
194 |
<artifactId>spring-boot-starter-aop</artifactId> |
|
195 |
<exclusions> |
|
196 |
<exclusion> |
|
197 |
<groupId>org.springframework.boot</groupId> |
|
198 |
<artifactId>spring-boot-starter</artifactId> |
|
199 |
</exclusion> |
|
200 |
</exclusions> |
|
201 |
</dependency> |
|
202 |
|
|
203 |
<dependency> |
|
204 |
<groupId>com.aliyun.oss</groupId> |
|
205 |
<artifactId>aliyun-sdk-oss</artifactId> |
|
206 |
</dependency> |
|
207 |
|
|
208 |
<dependency> |
|
209 |
<groupId>org.apache.tomcat.embed</groupId> |
|
210 |
<artifactId>tomcat-embed-jasper</artifactId> |
|
211 |
<scope>provided</scope> |
|
212 |
</dependency> |
|
213 |
|
|
214 |
<dependency> |
|
215 |
<groupId>javax.servlet.jsp.jstl</groupId> |
|
216 |
<artifactId>jstl-api</artifactId> |
|
217 |
<exclusions> |
|
218 |
<exclusion> |
|
219 |
<groupId>javax.servlet</groupId> |
|
220 |
<artifactId>servlet-api</artifactId> |
|
221 |
</exclusion> |
|
222 |
</exclusions> |
|
223 |
</dependency> |
|
224 |
|
|
225 |
<dependency> |
|
226 |
<groupId>javax.servlet</groupId> |
|
227 |
<artifactId>jstl</artifactId> |
|
228 |
</dependency> |
|
229 |
|
|
230 |
<dependency> |
|
231 |
<groupId>org.springframework.boot</groupId> |
|
232 |
<artifactId>spring-boot-starter-web</artifactId> |
|
233 |
</dependency> |
|
234 |
<!--<dependency> |
|
235 |
<groupId>net.sf.json-lib</groupId> |
|
236 |
<artifactId>json-lib</artifactId> |
|
237 |
</dependency>--> |
|
238 |
|
001a8a
|
239 |
<dependency> |
A |
240 |
<groupId>org.hibernate.validator</groupId> |
|
241 |
<artifactId>hibernate-validator</artifactId> |
|
242 |
</dependency> |
707c81
|
243 |
</dependencies> |
C |
244 |
|
|
245 |
<profiles> |
|
246 |
<profile> |
|
247 |
<id>local</id> |
|
248 |
<properties> |
|
249 |
<!--使用${environment}获取值--> |
|
250 |
<environment>local</environment> |
c06ba7
|
251 |
<logXml>local</logXml> |
707c81
|
252 |
</properties> |
C |
253 |
</profile> |
|
254 |
<profile> |
|
255 |
<id>prod</id> |
|
256 |
<properties> |
|
257 |
<environment>prod</environment> |
c06ba7
|
258 |
<logXml>prod</logXml> |
C |
259 |
</properties> |
|
260 |
</profile> |
|
261 |
<profile> |
|
262 |
<id>heTest</id> |
|
263 |
<properties> |
|
264 |
<environment>heTest</environment> |
|
265 |
<logXml>local</logXml> |
707c81
|
266 |
</properties> |
C |
267 |
</profile> |
|
268 |
</profiles> |
|
269 |
|
|
270 |
<build> |
|
271 |
<resources> |
|
272 |
<resource> |
|
273 |
<directory>src/main/java</directory> |
|
274 |
<includes> |
|
275 |
<include>**/*.xml</include> |
|
276 |
</includes> |
|
277 |
</resource> |
|
278 |
<resource> |
|
279 |
<directory>src/main/resources</directory> |
|
280 |
<excludes> |
|
281 |
<exclude>application-*.properties</exclude> |
|
282 |
<exclude>log4j2-*.xml</exclude> |
|
283 |
</excludes> |
|
284 |
</resource> |
|
285 |
<resource> |
|
286 |
<directory>src/main/resources</directory> |
|
287 |
<includes> |
|
288 |
<include>application-${environment}.properties</include> |
c06ba7
|
289 |
<include>log4j2-${logXml}.xml</include> |
707c81
|
290 |
</includes> |
C |
291 |
</resource> |
|
292 |
</resources> |
|
293 |
|
|
294 |
<plugins> |
|
295 |
<!--**********分离资源文件及依赖包打包配置*************--> |
|
296 |
<plugin> |
|
297 |
<groupId>org.apache.maven.plugins</groupId> |
|
298 |
<artifactId>maven-dependency-plugin</artifactId> |
|
299 |
<executions> |
|
300 |
<execution> |
|
301 |
<id>copy-dependencies</id> |
|
302 |
<phase>package</phase> |
|
303 |
<goals> |
|
304 |
<goal>copy-dependencies</goal> |
|
305 |
</goals> |
|
306 |
<configuration> |
|
307 |
<outputDirectory>target/lib</outputDirectory> |
|
308 |
<excludeTransitive>false</excludeTransitive> |
|
309 |
<stripVersion>false</stripVersion> |
|
310 |
<includeScope>runtime</includeScope> |
|
311 |
</configuration> |
|
312 |
</execution> |
|
313 |
</executions> |
|
314 |
</plugin> |
|
315 |
|
|
316 |
<plugin> |
|
317 |
<groupId>org.apache.maven.plugins</groupId> |
|
318 |
<artifactId>maven-jar-plugin</artifactId> |
|
319 |
<configuration> |
|
320 |
<excludes> |
|
321 |
<exclude>**/*.properties</exclude> |
|
322 |
<exclude>**/log4j*.xml</exclude> |
|
323 |
<exclude>static/**</exclude> |
|
324 |
<exclude>templates/**</exclude> |
|
325 |
</excludes> |
|
326 |
</configuration> |
|
327 |
</plugin> |
|
328 |
|
|
329 |
<plugin> |
|
330 |
<groupId>org.springframework.boot</groupId> |
|
331 |
<artifactId>spring-boot-maven-plugin</artifactId> |
|
332 |
<configuration> |
c2710a
|
333 |
<mainClass>com.hx.phip.PhiPlatformUserApplication</mainClass> |
707c81
|
334 |
<layout>ZIP</layout> |
C |
335 |
<includes> |
|
336 |
<include> |
|
337 |
<groupId>non-exists</groupId> |
|
338 |
<artifactId>non-exists</artifactId> |
|
339 |
</include> |
|
340 |
</includes> |
|
341 |
</configuration> |
|
342 |
<executions> |
|
343 |
<execution> |
|
344 |
<goals> |
|
345 |
<goal>repackage</goal> |
|
346 |
</goals> |
|
347 |
<configuration> |
|
348 |
<classifier>classes</classifier> |
|
349 |
<attach>false</attach> |
|
350 |
</configuration> |
|
351 |
</execution> |
|
352 |
</executions> |
|
353 |
</plugin> |
|
354 |
<plugin> |
|
355 |
<groupId>org.apache.maven.plugins</groupId> |
|
356 |
<artifactId>maven-antrun-plugin</artifactId> |
|
357 |
<executions> |
|
358 |
<execution> |
|
359 |
<phase>package</phase> |
|
360 |
<goals> |
|
361 |
<goal>run</goal> |
|
362 |
</goals> |
|
363 |
<configuration> |
|
364 |
<target> |
|
365 |
<delete dir="${dist}" /> |
|
366 |
<mkdir dir="${dist}" /> |
|
367 |
<mkdir dir="${dist-tmp}" /> |
|
368 |
<mkdir dir="${res}" /> |
|
369 |
<copy file="target/${app-name}.jar" tofile="${dist-tmp}/${app-name}.jar" /> |
|
370 |
<unzip src="${dist-tmp}/${app-name}.jar" dest="${dist-tmp}" /> |
|
371 |
<delete file="${dist-tmp}/${app-name}.jar" /> |
|
372 |
<move file="target/${app-name}-classes.jar" tofile="${dist}/${real-app-name}.jar"/> |
|
373 |
<move todir="${dist}/lib"> |
|
374 |
<fileset dir="target/lib" /> |
|
375 |
</move> |
|
376 |
|
|
377 |
<delete dir="${dist-tmp}" /> |
|
378 |
|
|
379 |
<copy todir="${res}"> |
|
380 |
<fileset dir="target/classes"> |
|
381 |
<include name="**/static/**" /> |
|
382 |
<include name="**/templates/**" /> |
|
383 |
</fileset> |
|
384 |
</copy> |
|
385 |
<copy todir="${res}"> |
|
386 |
<fileset dir="target/classes"> |
|
387 |
<include name="**/*.properties" /> |
|
388 |
<include name="**/*.xml" /> |
|
389 |
<include name="**/*.yml" /> |
|
390 |
<exclude name="**/*Mapper.xml"/> |
|
391 |
</fileset> |
|
392 |
</copy> |
|
393 |
</target> |
|
394 |
</configuration> |
|
395 |
</execution> |
|
396 |
</executions> |
|
397 |
</plugin> |
|
398 |
</plugins> |
|
399 |
</build> |
|
400 |
|
|
401 |
</project> |