pom.xml 11 KB

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