pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  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. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>ag-basic</artifactId>
  13. <version>${project.parent.version}</version>
  14. <packaging>jar</packaging>
  15. <dependencies>
  16. <!-- 支持Tomcat启动 -->
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-tomcat</artifactId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-tomcat</artifactId>
  30. <scope>provided</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>javax.servlet</groupId>
  34. <artifactId>javax.servlet-api</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.tomcat.embed</groupId>
  38. <artifactId>tomcat-embed-jasper</artifactId>
  39. </dependency>
  40. <!-- 支持Tomcat启动 -->
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.cloud</groupId>
  47. <artifactId>spring-cloud-starter-config</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.retry</groupId>
  51. <artifactId>spring-retry</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>net.sf.json-lib</groupId>
  55. <artifactId>json-lib</artifactId>
  56. <version>${version.net-json}</version>
  57. <exclusions>
  58. <exclusion>
  59. <groupId>org.slf4j</groupId>
  60. <artifactId>slf4j-log4j12</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <!--<dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-starter-zipkin</artifactId>
  67. </dependency>-->
  68. <!-- 安全认证中心-->
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-security</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.security.oauth.boot</groupId>
  75. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  76. </dependency>
  77. <!-- 安全认证中心-->
  78. <!-- Redis -->
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-starter-data-redis</artifactId>
  82. <exclusions>
  83. <exclusion>
  84. <groupId>io.lettuce</groupId>
  85. <artifactId>lettuce-core</artifactId>
  86. </exclusion>
  87. </exclusions>
  88. </dependency>
  89. <dependency>
  90. <groupId>redis.clients</groupId>
  91. <artifactId>jedis</artifactId>
  92. </dependency>
  93. <!-- Redis -->
  94. <!-- JdbcTemplate-->
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-jdbc</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>mysql</groupId>
  101. <artifactId>mysql-connector-java</artifactId>
  102. <scope>runtime</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.commons</groupId>
  106. <artifactId>commons-dbcp2</artifactId>
  107. </dependency>
  108. <!-- JdbcTemplate-->
  109. <dependency>
  110. <groupId>com.yihu.jw</groupId>
  111. <artifactId>common-web</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.yihu.jw</groupId>
  115. <artifactId>common-rest-model</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-fileupload</groupId>
  119. <artifactId>commons-fileupload</artifactId>
  120. <version>${version.commons-fileupload}</version>
  121. </dependency>
  122. <!--oracle驱动-->
  123. <dependency>
  124. <groupId>com.oracle</groupId>
  125. <artifactId>ojdbc6</artifactId>
  126. <version>${version.oracle}</version>
  127. </dependency>
  128. <!-- 添加dm8 jdbc jar 包依赖-->
  129. <dependency>
  130. <groupId>com.dameng</groupId>
  131. <artifactId>DmJdbcDriver18</artifactId>
  132. <version>${version.dmdb}</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.dameng</groupId>
  136. <artifactId>DmDialect-for-hibernate5.6</artifactId>
  137. <version>8.1.3.62</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework.cloud</groupId>
  141. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  142. </dependency>
  143. </dependencies>
  144. <!--<build>
  145. <finalName>ag-basic</finalName>
  146. <plugins>
  147. <plugin>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-maven-plugin</artifactId>
  150. </plugin>
  151. <plugin>
  152. <artifactId>maven-war-plugin</artifactId>
  153. <configuration>
  154. <failOnMissingWebXml>false</failOnMissingWebXml>
  155. <filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
  156. </configuration>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. -->
  161. <build>
  162. <finalName>ag-basic</finalName>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-jar-plugin</artifactId>
  167. <configuration>
  168. <archive>
  169. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  170. <addMavenDescriptor>false</addMavenDescriptor>
  171. <manifest>
  172. <!-- 是否要把第三方jar加入到类构建路径 -->
  173. <addClasspath>true</addClasspath>
  174. <!-- 外部依赖jar包的最终位置 -->
  175. <classpathPrefix>lib/</classpathPrefix>
  176. <mainClass>com.yihu.AgBasicServer</mainClass>
  177. </manifest>
  178. </archive>
  179. </configuration>
  180. </plugin>
  181. <!--拷贝依赖到jar外面的lib目录-->
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-dependency-plugin</artifactId>
  185. <executions>
  186. <execution>
  187. <id>copy-lib</id>
  188. <phase>package</phase>
  189. <goals>
  190. <goal>copy-dependencies</goal>
  191. </goals>
  192. <configuration>
  193. <!-- 依赖包输出目录,将来不打进jar包里 -->
  194. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  195. <excludeTransitive>false</excludeTransitive>
  196. <stripVersion>false</stripVersion>
  197. <includeScope>runtime</includeScope>
  198. </configuration>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <!--指定配置文件,将resources打成外部resource-->
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-jar-plugin</artifactId>
  206. <version>3.2.0</version>
  207. <configuration>
  208. <archive>
  209. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  210. <manifestEntries>
  211. <Class-Path>resources/</Class-Path>
  212. </manifestEntries>
  213. </archive>
  214. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  215. <excludes>
  216. <exclude>**/*.yml</exclude>
  217. <exclude>**/*.xml</exclude>
  218. </excludes>
  219. </configuration>
  220. </plugin>
  221. <!-- 拷贝资源文件 外面的resource目录-->
  222. <plugin>
  223. <artifactId>maven-resources-plugin</artifactId>
  224. <executions>
  225. <execution>
  226. <id>copy-dependencies</id>
  227. <phase>package</phase>
  228. <goals>
  229. <goal>copy-resources</goal>
  230. </goals>
  231. <configuration>
  232. <!-- 资源文件输出目录 -->
  233. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  234. <resources>
  235. <resource>
  236. <directory>src/main/resources</directory>
  237. </resource>
  238. </resources>
  239. </configuration>
  240. </execution>
  241. </executions>
  242. </plugin>
  243. </plugins>
  244. </build>
  245. </project>