pom.xml 6.3 KB

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