pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. <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</groupId>
  126. <artifactId>mysql-starter</artifactId>
  127. <version>2.0.0</version>
  128. <exclusions>
  129. <exclusion>
  130. <groupId>org.apache.tomcat</groupId>
  131. <artifactId>tomcat-jdbc</artifactId>
  132. </exclusion>
  133. </exclusions>
  134. </dependency>
  135. <!-- 易联众工具-->
  136. <dependency>
  137. <groupId>com.ylz.loginsdk</groupId>
  138. <artifactId>ehcsdk</artifactId>
  139. <version>1.0</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.yihu</groupId>
  143. <artifactId>fastdfs-starter</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.google.zxing</groupId>
  147. <artifactId>core</artifactId>
  148. <version>RELEASE</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.google.zxing</groupId>
  152. <artifactId>javase</artifactId>
  153. <version>RELEASE</version>
  154. </dependency>
  155. <!--验证码-->
  156. <dependency>
  157. <groupId>com.google.code.kaptcha</groupId>
  158. <artifactId>kaptcha</artifactId>
  159. <version>2.3</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.yihu.jw</groupId>
  163. <artifactId>sms-service</artifactId>
  164. <version>2.0.0</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>axis</groupId>
  168. <artifactId>axis-jaxrpc</artifactId>
  169. <version>1.4</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.axis</groupId>
  173. <artifactId>axis</artifactId>
  174. <version>1.4</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>commons-discovery</groupId>
  178. <artifactId>commons-discovery</artifactId>
  179. <version>0.2</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>javax.wsdl</groupId>
  183. <artifactId>javax.wsdl</artifactId>
  184. <version>1.5.1</version>
  185. </dependency>
  186. <!--oracle驱动-->
  187. <dependency>
  188. <groupId>com.oracle</groupId>
  189. <artifactId>ojdbc6</artifactId>
  190. <version>11.2.0.3</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework</groupId>
  194. <artifactId>spring-test</artifactId>
  195. <!--<version>RELEASE</version>-->
  196. </dependency>
  197. <dependency>
  198. <groupId>com.zy</groupId>
  199. <artifactId>alipay-sdk-java</artifactId>
  200. <version>4.10.159.ALL</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>com.zy</groupId>
  204. <artifactId>kasite-sdk</artifactId>
  205. <version>20201027</version>
  206. </dependency>
  207. </dependencies>
  208. <build>
  209. <finalName>svr-authentication</finalName>
  210. <plugins>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-jar-plugin</artifactId>
  214. <configuration>
  215. <archive>
  216. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  217. <addMavenDescriptor>false</addMavenDescriptor>
  218. <manifest>
  219. <!-- 是否要把第三方jar加入到类构建路径 -->
  220. <addClasspath>true</addClasspath>
  221. <!-- 外部依赖jar包的最终位置 -->
  222. <classpathPrefix>lib/</classpathPrefix>
  223. <mainClass>com.yihu.AuthServer</mainClass>
  224. </manifest>
  225. </archive>
  226. </configuration>
  227. </plugin>
  228. <!--拷贝依赖到jar外面的lib目录-->
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-dependency-plugin</artifactId>
  232. <executions>
  233. <execution>
  234. <id>copy-lib</id>
  235. <phase>package</phase>
  236. <goals>
  237. <goal>copy-dependencies</goal>
  238. </goals>
  239. <configuration>
  240. <!-- 依赖包输出目录,将来不打进jar包里 -->
  241. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  242. <excludeTransitive>false</excludeTransitive>
  243. <stripVersion>false</stripVersion>
  244. <includeScope>runtime</includeScope>
  245. </configuration>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <!--指定配置文件,将resources打成外部resource-->
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-jar-plugin</artifactId>
  253. <configuration>
  254. <archive>
  255. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  256. <manifestEntries>
  257. <Class-Path>resources/</Class-Path>
  258. </manifestEntries>
  259. </archive>
  260. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  261. <excludes>
  262. <exclude>**/*.yml</exclude>
  263. <exclude>**/*.xml</exclude>
  264. </excludes>
  265. </configuration>
  266. </plugin>
  267. <!-- 拷贝资源文件 外面的resource目录-->
  268. <plugin>
  269. <artifactId>maven-resources-plugin</artifactId>
  270. <executions>
  271. <execution>
  272. <id>copy-dependencies</id>
  273. <phase>package</phase>
  274. <goals>
  275. <goal>copy-resources</goal>
  276. </goals>
  277. <configuration>
  278. <!-- 资源文件输出目录 -->
  279. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  280. <resources>
  281. <resource>
  282. <directory>src/main/resources</directory>
  283. </resource>
  284. </resources>
  285. </configuration>
  286. </execution>
  287. </executions>
  288. </plugin>
  289. </plugins>
  290. </build>
  291. </project>