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