pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. <artifactId>wlyy-parent-pom</artifactId>
  7. <groupId>com.yihu.jw</groupId>
  8. <version>2.4.1</version>
  9. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <groupId>com.yihu.jw</groupId>
  13. <artifactId>svr-authentication</artifactId>
  14. <packaging>jar</packaging>
  15. <version>${project.parent.version}</version>
  16. <dependencies>
  17. <!-- 支持Tomcat启动 -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. <exclusions>
  22. <exclusion>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-tomcat</artifactId>
  25. </exclusion>
  26. </exclusions>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-tomcat</artifactId>
  31. <scope>provided</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>javax.servlet</groupId>
  35. <artifactId>javax.servlet-api</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.tomcat.embed</groupId>
  39. <artifactId>tomcat-embed-jasper</artifactId>
  40. </dependency>
  41. <!-- 支持Tomcat启动 -->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-security</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.security.oauth.boot</groupId>
  48. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-test</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.cloud</groupId>
  57. <artifactId>spring-cloud-starter-config</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.cloud</groupId>
  65. <artifactId>spring-cloud-starter-openfeign</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.zaxxer</groupId>
  73. <artifactId>HikariCP</artifactId>
  74. <!-- <scope>runtime</scope> -->
  75. </dependency>
  76. <dependency>
  77. <groupId>net.sf.json-lib</groupId>
  78. <artifactId>json-lib</artifactId>
  79. <version>2.4</version>
  80. <exclusions>
  81. <exclusion>
  82. <groupId>org.slf4j</groupId>
  83. <artifactId>slf4j-log4j12</artifactId>
  84. </exclusion>
  85. </exclusions>
  86. </dependency>
  87. <!-- Redis -->
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-data-redis</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>redis.clients</groupId>
  94. <artifactId>jedis</artifactId>
  95. </dependency>
  96. <!-- Redis -->
  97. <!-- JdbcTemplate-->
  98. <!-- <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-jdbc</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>mysql</groupId>
  104. <artifactId>mysql-connector-java</artifactId>
  105. <scope>runtime</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.commons</groupId>
  109. <artifactId>commons-dbcp2</artifactId>
  110. </dependency>-->
  111. <!-- JdbcTemplate-->
  112. <dependency>
  113. <groupId>com.yihu.jw</groupId>
  114. <artifactId>common-rest-model</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.yihu.jw</groupId>
  118. <artifactId>common-entity</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.yihu.jw</groupId>
  122. <artifactId>common-util</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.yihu.jw</groupId>
  126. <artifactId>swagger-starter</artifactId>
  127. <version>${version.wlyy-common}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.yihu.jw</groupId>
  131. <artifactId>mysql-starter</artifactId>
  132. <version>${version.wlyy-common}</version>
  133. <exclusions>
  134. <exclusion>
  135. <groupId>org.apache.tomcat</groupId>
  136. <artifactId>tomcat-jdbc</artifactId>
  137. </exclusion>
  138. </exclusions>
  139. </dependency>
  140. <!-- 易联众工具-->
  141. <dependency>
  142. <groupId>com.ylz.loginsdk</groupId>
  143. <artifactId>ehcsdk</artifactId>
  144. <version>1.0</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.yihu</groupId>
  148. <artifactId>fastdfs-starter</artifactId>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.google.zxing</groupId>
  152. <artifactId>core</artifactId>
  153. <version>RELEASE</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.google.zxing</groupId>
  157. <artifactId>javase</artifactId>
  158. <version>RELEASE</version>
  159. </dependency>
  160. <!--验证码-->
  161. <dependency>
  162. <groupId>com.google.code.kaptcha</groupId>
  163. <artifactId>kaptcha</artifactId>
  164. <version>2.3</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.yihu.jw</groupId>
  168. <artifactId>sms-service</artifactId>
  169. <version>2.4.1</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>axis</groupId>
  173. <artifactId>axis-jaxrpc</artifactId>
  174. <version>1.4</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.axis</groupId>
  178. <artifactId>axis</artifactId>
  179. <version>1.4</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>commons-discovery</groupId>
  183. <artifactId>commons-discovery</artifactId>
  184. <version>0.5</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>javax.wsdl</groupId>
  188. <artifactId>javax.wsdl</artifactId>
  189. <version>1.5.1</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.projectlombok</groupId>
  193. <artifactId>lombok</artifactId>
  194. <version>1.18.8</version>
  195. </dependency>
  196. <!--oracle驱动-->
  197. <dependency>
  198. <groupId>com.oracle</groupId>
  199. <artifactId>ojdbc6</artifactId>
  200. <version>11.2.0.3</version>
  201. </dependency>
  202. <!-- 添加dm8 jdbc jar 包依赖-->
  203. <dependency>
  204. <groupId>com.dameng</groupId>
  205. <artifactId>DmJdbcDriver18</artifactId>
  206. <version>${version.dmdb}</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>com.dameng</groupId>
  210. <artifactId>DmDialect-for-hibernate5.6</artifactId>
  211. <version>8.1.3.62</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.springframework</groupId>
  215. <artifactId>spring-test</artifactId>
  216. <!--<version>RELEASE</version>-->
  217. </dependency>
  218. <dependency>
  219. <groupId>com.zy</groupId>
  220. <artifactId>alipay-sdk-java</artifactId>
  221. <version>4.10.159.ALL</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.zy</groupId>
  225. <artifactId>kasite-sdk</artifactId>
  226. <version>20201027</version>
  227. </dependency>
  228. </dependencies>
  229. <build>
  230. <finalName>svr-authentication</finalName>
  231. <plugins>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-jar-plugin</artifactId>
  235. <configuration>
  236. <archive>
  237. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  238. <addMavenDescriptor>false</addMavenDescriptor>
  239. <manifest>
  240. <!-- 是否要把第三方jar加入到类构建路径 -->
  241. <addClasspath>true</addClasspath>
  242. <!-- 外部依赖jar包的最终位置 -->
  243. <classpathPrefix>lib/</classpathPrefix>
  244. <mainClass>com.yihu.AuthServer</mainClass>
  245. </manifest>
  246. </archive>
  247. </configuration>
  248. </plugin>
  249. <!--拷贝依赖到jar外面的lib目录-->
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-dependency-plugin</artifactId>
  253. <executions>
  254. <execution>
  255. <id>copy-lib</id>
  256. <phase>package</phase>
  257. <goals>
  258. <goal>copy-dependencies</goal>
  259. </goals>
  260. <configuration>
  261. <!-- 依赖包输出目录,将来不打进jar包里 -->
  262. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  263. <excludeTransitive>false</excludeTransitive>
  264. <stripVersion>false</stripVersion>
  265. <includeScope>runtime</includeScope>
  266. </configuration>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. <!--指定配置文件,将resources打成外部resource-->
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-jar-plugin</artifactId>
  274. <configuration>
  275. <archive>
  276. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  277. <manifestEntries>
  278. <Class-Path>resources/</Class-Path>
  279. </manifestEntries>
  280. </archive>
  281. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  282. <excludes>
  283. <exclude>**/*.yml</exclude>
  284. <exclude>**/*.xml</exclude>
  285. </excludes>
  286. </configuration>
  287. </plugin>
  288. <!-- 拷贝资源文件 外面的resource目录-->
  289. <plugin>
  290. <artifactId>maven-resources-plugin</artifactId>
  291. <executions>
  292. <execution>
  293. <id>copy-dependencies</id>
  294. <phase>package</phase>
  295. <goals>
  296. <goal>copy-resources</goal>
  297. </goals>
  298. <configuration>
  299. <!-- 资源文件输出目录 -->
  300. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  301. <resources>
  302. <resource>
  303. <directory>src/main/resources</directory>
  304. </resource>
  305. </resources>
  306. </configuration>
  307. </execution>
  308. </executions>
  309. </plugin>
  310. </plugins>
  311. </build>
  312. </project>