pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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.0.0</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>${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</groupId>
  48. <artifactId>spring-security-oauth2</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-eureka</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.cloud</groupId>
  65. <artifactId>spring-cloud-starter-feign</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.cloud</groupId>
  69. <artifactId>spring-cloud-starter-ribbon</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.zaxxer</groupId>
  73. <artifactId>HikariCP</artifactId>
  74. <!-- <scope>runtime</scope> -->
  75. </dependency>
  76. <!-- Redis -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-data-redis</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>redis.clients</groupId>
  83. <artifactId>jedis</artifactId>
  84. </dependency>
  85. <!-- Redis -->
  86. <!-- JdbcTemplate-->
  87. <!-- <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-jdbc</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>mysql</groupId>
  93. <artifactId>mysql-connector-java</artifactId>
  94. <scope>runtime</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.apache.commons</groupId>
  98. <artifactId>commons-dbcp2</artifactId>
  99. </dependency>-->
  100. <!-- JdbcTemplate-->
  101. <dependency>
  102. <groupId>com.yihu.jw</groupId>
  103. <artifactId>common-rest-model</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.yihu.jw</groupId>
  107. <artifactId>common-entity</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.yihu.jw</groupId>
  111. <artifactId>common-util</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.yihu</groupId>
  115. <artifactId>mysql-starter</artifactId>
  116. <version>2.0.0</version>
  117. <exclusions>
  118. <exclusion>
  119. <groupId>org.apache.tomcat</groupId>
  120. <artifactId>tomcat-jdbc</artifactId>
  121. </exclusion>
  122. </exclusions>
  123. </dependency>
  124. <!-- 易联众工具-->
  125. <dependency>
  126. <groupId>com.ylz.loginsdk</groupId>
  127. <artifactId>ehcsdk</artifactId>
  128. <version>1.0</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.yihu</groupId>
  132. <artifactId>fastdfs-starter</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.google.zxing</groupId>
  136. <artifactId>core</artifactId>
  137. <version>RELEASE</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.google.zxing</groupId>
  141. <artifactId>javase</artifactId>
  142. <version>RELEASE</version>
  143. </dependency>
  144. <!--验证码-->
  145. <dependency>
  146. <groupId>com.google.code.kaptcha</groupId>
  147. <artifactId>kaptcha</artifactId>
  148. <version>2.3</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.yihu.jw</groupId>
  152. <artifactId>sms-service</artifactId>
  153. <version>2.0.0</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>axis</groupId>
  157. <artifactId>axis-jaxrpc</artifactId>
  158. <version>1.4</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.apache.axis</groupId>
  162. <artifactId>axis</artifactId>
  163. <version>1.4</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-discovery</groupId>
  167. <artifactId>commons-discovery</artifactId>
  168. <version>0.2</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>javax.wsdl</groupId>
  172. <artifactId>javax.wsdl</artifactId>
  173. <version>1.5.1</version>
  174. </dependency>
  175. <!--oracle驱动-->
  176. <dependency>
  177. <groupId>com.oracle</groupId>
  178. <artifactId>ojdbc6</artifactId>
  179. <version>11.2.0.3</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.springframework</groupId>
  183. <artifactId>spring-test</artifactId>
  184. <!--<version>RELEASE</version>-->
  185. </dependency>
  186. <dependency>
  187. <groupId>com.zy</groupId>
  188. <artifactId>alipay-sdk-java</artifactId>
  189. <version>4.10.159.ALL</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>com.zy</groupId>
  193. <artifactId>kasite-sdk</artifactId>
  194. <version>20201027</version>
  195. </dependency>
  196. </dependencies>
  197. <build>
  198. <finalName>svr-authentication</finalName>
  199. <plugins>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-jar-plugin</artifactId>
  203. <configuration>
  204. <archive>
  205. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  206. <addMavenDescriptor>false</addMavenDescriptor>
  207. <manifest>
  208. <!-- 是否要把第三方jar加入到类构建路径 -->
  209. <addClasspath>true</addClasspath>
  210. <!-- 外部依赖jar包的最终位置 -->
  211. <classpathPrefix>lib/</classpathPrefix>
  212. <mainClass>com.yihu.AuthServer</mainClass>
  213. </manifest>
  214. </archive>
  215. </configuration>
  216. </plugin>
  217. <!--拷贝依赖到jar外面的lib目录-->
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-dependency-plugin</artifactId>
  221. <executions>
  222. <execution>
  223. <id>copy-lib</id>
  224. <phase>package</phase>
  225. <goals>
  226. <goal>copy-dependencies</goal>
  227. </goals>
  228. <configuration>
  229. <!-- 依赖包输出目录,将来不打进jar包里 -->
  230. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  231. <excludeTransitive>false</excludeTransitive>
  232. <stripVersion>false</stripVersion>
  233. <includeScope>runtime</includeScope>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <!--指定配置文件,将resources打成外部resource-->
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-jar-plugin</artifactId>
  242. <configuration>
  243. <archive>
  244. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  245. <manifestEntries>
  246. <Class-Path>resources/</Class-Path>
  247. </manifestEntries>
  248. </archive>
  249. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  250. <excludes>
  251. <exclude>**/*.yml</exclude>
  252. <exclude>**/*.xml</exclude>
  253. </excludes>
  254. </configuration>
  255. </plugin>
  256. <!-- 拷贝资源文件 外面的resource目录-->
  257. <plugin>
  258. <artifactId>maven-resources-plugin</artifactId>
  259. <executions>
  260. <execution>
  261. <id>copy-dependencies</id>
  262. <phase>package</phase>
  263. <goals>
  264. <goal>copy-resources</goal>
  265. </goals>
  266. <configuration>
  267. <!-- 资源文件输出目录 -->
  268. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  269. <resources>
  270. <resource>
  271. <directory>src/main/resources</directory>
  272. </resource>
  273. </resources>
  274. </configuration>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. </plugins>
  279. </build>
  280. </project>