rx
2024-08-02 3296a2491923bab8ffbdbb27086d3cb3e2def17d
提交 | 用户 | 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>
4161dc 243
F 244
245         <!--生成PDF使用包-->
246         <dependency>
247             <groupId>com.itextpdf</groupId>
248             <artifactId>itextpdf</artifactId>
249             <version>5.5.6</version>
250         </dependency>
251         <dependency>
252             <groupId>com.itextpdf</groupId>
253             <artifactId>itextpdf</artifactId>
254             <version>5.5.13</version>
255         </dependency>
256         <dependency>
257             <groupId>com.itextpdf</groupId>
258             <artifactId>itext-asian</artifactId>
259             <version>5.2.0</version>
260         </dependency>
261
707c81 262     </dependencies>
C 263
264     <profiles>
265         <profile>
266             <id>local</id>
267             <properties>
268                 <!--使用${environment}获取值-->
269                 <environment>local</environment>
c06ba7 270                 <logXml>local</logXml>
707c81 271             </properties>
C 272         </profile>
273         <profile>
274             <id>prod</id>
275             <properties>
276                 <environment>prod</environment>
c06ba7 277                 <logXml>prod</logXml>
C 278             </properties>
279         </profile>
280         <profile>
281             <id>heTest</id>
282             <properties>
283                 <environment>heTest</environment>
284                 <logXml>local</logXml>
707c81 285             </properties>
C 286         </profile>
287     </profiles>
288
289     <build>
290         <resources>
291             <resource>
292                 <directory>src/main/java</directory>
293                 <includes>
294                     <include>**/*.xml</include>
295                 </includes>
296             </resource>
297             <resource>
298                 <directory>src/main/resources</directory>
299                 <excludes>
300                     <exclude>application-*.properties</exclude>
301                     <exclude>log4j2-*.xml</exclude>
302                 </excludes>
303             </resource>
304             <resource>
305                 <directory>src/main/resources</directory>
306                 <includes>
307                     <include>application-${environment}.properties</include>
c06ba7 308                     <include>log4j2-${logXml}.xml</include>
707c81 309                 </includes>
C 310             </resource>
311         </resources>
312
313         <plugins>
314             <!--**********分离资源文件及依赖包打包配置*************-->
315             <plugin>
316                 <groupId>org.apache.maven.plugins</groupId>
317                 <artifactId>maven-dependency-plugin</artifactId>
318                 <executions>
319                     <execution>
320                         <id>copy-dependencies</id>
321                         <phase>package</phase>
322                         <goals>
323                             <goal>copy-dependencies</goal>
324                         </goals>
325                         <configuration>
326                             <outputDirectory>target/lib</outputDirectory>
327                             <excludeTransitive>false</excludeTransitive>
328                             <stripVersion>false</stripVersion>
329                             <includeScope>runtime</includeScope>
330                         </configuration>
331                     </execution>
332                 </executions>
333             </plugin>
334
335             <plugin>
336                 <groupId>org.apache.maven.plugins</groupId>
337                 <artifactId>maven-jar-plugin</artifactId>
338                 <configuration>
339                     <excludes>
340                         <exclude>**/*.properties</exclude>
341                         <exclude>**/log4j*.xml</exclude>
342                         <exclude>static/**</exclude>
343                         <exclude>templates/**</exclude>
344                     </excludes>
345                 </configuration>
346             </plugin>
347
348             <plugin>
349                 <groupId>org.springframework.boot</groupId>
350                 <artifactId>spring-boot-maven-plugin</artifactId>
351                 <configuration>
c2710a 352                     <mainClass>com.hx.phip.PhiPlatformUserApplication</mainClass>
707c81 353                     <layout>ZIP</layout>
C 354                     <includes>
355                         <include>
356                             <groupId>non-exists</groupId>
357                             <artifactId>non-exists</artifactId>
358                         </include>
359                     </includes>
360                 </configuration>
361                 <executions>
362                     <execution>
363                         <goals>
364                             <goal>repackage</goal>
365                         </goals>
366                         <configuration>
367                             <classifier>classes</classifier>
368                             <attach>false</attach>
369                         </configuration>
370                     </execution>
371                 </executions>
372             </plugin>
373             <plugin>
374                 <groupId>org.apache.maven.plugins</groupId>
375                 <artifactId>maven-antrun-plugin</artifactId>
376                 <executions>
377                     <execution>
378                         <phase>package</phase>
379                         <goals>
380                             <goal>run</goal>
381                         </goals>
382                         <configuration>
383                             <target>
384                                 <delete dir="${dist}" />
385                                 <mkdir dir="${dist}" />
386                                 <mkdir dir="${dist-tmp}" />
387                                 <mkdir dir="${res}" />
388                                 <copy file="target/${app-name}.jar" tofile="${dist-tmp}/${app-name}.jar" />
389                                 <unzip src="${dist-tmp}/${app-name}.jar" dest="${dist-tmp}" />
390                                 <delete file="${dist-tmp}/${app-name}.jar" />
391                                 <move file="target/${app-name}-classes.jar" tofile="${dist}/${real-app-name}.jar"/>
392                                 <move todir="${dist}/lib">
393                                     <fileset dir="target/lib" />
394                                 </move>
395
396                                 <delete dir="${dist-tmp}" />
397
398                                 <copy todir="${res}">
399                                     <fileset dir="target/classes">
400                                         <include name="**/static/**" />
401                                         <include name="**/templates/**" />
402                                     </fileset>
403                                 </copy>
404                                 <copy todir="${res}">
405                                     <fileset dir="target/classes">
406                                         <include name="**/*.properties" />
407                                         <include name="**/*.xml" />
408                                         <include name="**/*.yml" />
409                                         <exclude name="**/*Mapper.xml"/>
410                                     </fileset>
411                                 </copy>
412                             </target>
413                         </configuration>
414                     </execution>
415                 </executions>
416             </plugin>
417         </plugins>
418     </build>
419
420 </project>