pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.yihu.jw</groupId>
  7. <artifactId>wlyy-parent-pom</artifactId>
  8. <version>2.4.0</version>
  9. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  10. </parent>
  11. <groupId>com.yihu.rehabilitation</groupId>
  12. <artifactId>svr-rehabilitation</artifactId>
  13. <version>${project.parent.version}</version>
  14. <packaging>jar</packaging>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.cloud</groupId>
  18. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-tomcat</artifactId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-tomcat</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>javax.servlet</groupId>
  36. <artifactId>javax.servlet-api</artifactId>
  37. <scope>provided</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.cloud</groupId>
  45. <artifactId>spring-cloud-starter-config</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.alibaba</groupId>
  49. <artifactId>fastjson</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.commons</groupId>
  53. <artifactId>commons-lang3</artifactId>
  54. <version>3.3.2</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.poi</groupId>
  58. <artifactId>poi</artifactId>
  59. <version>3.15-beta1</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.yihu.jw</groupId>
  63. <artifactId>common-entity</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.yihu.jw</groupId>
  67. <artifactId>common-request-mapping</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.yihu.jw</groupId>
  71. <artifactId>common-exception</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.yihu.jw</groupId>
  75. <artifactId>common-rest-model</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.yihu.jw</groupId>
  79. <artifactId>common-util</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.yihu</groupId>
  83. <artifactId>fastdfs-starter</artifactId>
  84. <version>2.0.0</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.yihu.jw</groupId>
  88. <artifactId>swagger-starter</artifactId>
  89. <version>${version.wlyy-common}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.yihu.jw</groupId>
  93. <artifactId>mysql-starter</artifactId>
  94. <version>${version.wlyy-common}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.yihu.jw</groupId>
  98. <artifactId>base-service</artifactId>
  99. <version>${version.wlyy-common}</version>
  100. <scope>compile</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.yihu.jw</groupId>
  104. <artifactId>im-service</artifactId>
  105. <version>${version.wlyy-common}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.yihu.jw</groupId>
  109. <artifactId>es-service</artifactId>
  110. <version>${version.wlyy-common}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.springside</groupId>
  114. <artifactId>springside-core</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springside</groupId>
  118. <artifactId>springside-core</artifactId>
  119. <version>4.2.3-GA</version>
  120. </dependency>
  121. </dependencies>
  122. <build>
  123. <finalName>svr-rehabilitation</finalName>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-jar-plugin</artifactId>
  128. <configuration>
  129. <archive>
  130. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  131. <addMavenDescriptor>false</addMavenDescriptor>
  132. <manifest>
  133. <!-- 是否要把第三方jar加入到类构建路径 -->
  134. <addClasspath>true</addClasspath>
  135. <!-- 外部依赖jar包的最终位置 -->
  136. <classpathPrefix>lib/</classpathPrefix>
  137. <mainClass>com.yihu.SvrRehabilitationApplication</mainClass>
  138. </manifest>
  139. </archive>
  140. </configuration>
  141. </plugin>
  142. <!--拷贝依赖到jar外面的lib目录-->
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-dependency-plugin</artifactId>
  146. <executions>
  147. <execution>
  148. <id>copy-lib</id>
  149. <phase>package</phase>
  150. <goals>
  151. <goal>copy-dependencies</goal>
  152. </goals>
  153. <configuration>
  154. <!-- 依赖包输出目录,将来不打进jar包里 -->
  155. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  156. <excludeTransitive>false</excludeTransitive>
  157. <stripVersion>false</stripVersion>
  158. <includeScope>runtime</includeScope>
  159. </configuration>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. <!--指定配置文件,将resources打成外部resource-->
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-jar-plugin</artifactId>
  167. <configuration>
  168. <archive>
  169. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  170. <manifestEntries>
  171. <Class-Path>resources/</Class-Path>
  172. </manifestEntries>
  173. </archive>
  174. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  175. <excludes>
  176. <exclude>**/*.yml</exclude>
  177. <exclude>**/*.xml</exclude>
  178. </excludes>
  179. </configuration>
  180. </plugin>
  181. <!-- 拷贝资源文件 外面的resource目录-->
  182. <plugin>
  183. <artifactId>maven-resources-plugin</artifactId>
  184. <executions>
  185. <execution>
  186. <id>copy-dependencies</id>
  187. <phase>package</phase>
  188. <goals>
  189. <goal>copy-resources</goal>
  190. </goals>
  191. <configuration>
  192. <!-- 资源文件输出目录 -->
  193. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  194. <resources>
  195. <resource>
  196. <directory>src/main/resources</directory>
  197. </resource>
  198. </resources>
  199. </configuration>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. </plugins>
  204. </build>
  205. </project>