pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.liangjian11</groupId>
  6. <artifactId>oauth2-shiro-jwt</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>oauth2-shiro-jwt</name>
  10. <description>Demo project for Spring Boot</description>
  11. <!--<parent>-->
  12. <!--<groupId>org.springframework.boot</groupId>-->
  13. <!--<artifactId>spring-boot-starter-parent</artifactId>-->
  14. <!--<version>2.0.6.RELEASE</version>-->
  15. <!--<relativePath/>-->
  16. <!--</parent>-->
  17. <parent>
  18. <groupId>com.liangjian11</groupId>
  19. <artifactId>oauth2_parent</artifactId>
  20. <version>0.0.1-SNAPSHOT</version>
  21. <relativePath>../oauth2_parent/pom.xml</relativePath>
  22. </parent>
  23. <properties>
  24. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  26. <java.version>1.8</java.version>
  27. <!--<java.version>11</java.version>-->
  28. <shiro.version>1.4.0</shiro.version>
  29. <jjwt.version>0.9.0</jjwt.version>
  30. <guava.version>20.0</guava.version>
  31. <slf4j_version>1.7.7</slf4j_version>
  32. <log4j_version>2.8.2</log4j_version>
  33. <oltu.version>1.0.0</oltu.version>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-aop</artifactId>
  39. <exclusions>
  40. <exclusion>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-logging</artifactId>
  43. </exclusion>
  44. </exclusions>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-validation</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-web</artifactId>
  53. <exclusions>
  54. <exclusion>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-logging</artifactId>
  57. </exclusion>
  58. <!--<exclusion>-->
  59. <!--<groupId>javax.xml.bind</groupId>-->
  60. <!--<artifactId>jaxb-api</artifactId>-->
  61. <!--</exclusion>-->
  62. <!--<exclusion>-->
  63. <!--<groupId>com.sun.xml.bind</groupId>-->
  64. <!--<artifactId>jaxb-impl</artifactId>-->
  65. <!--</exclusion>-->
  66. <!--<exclusion>-->
  67. <!--<groupId>com.sun.xml.bind</groupId>-->
  68. <!--<artifactId>jaxb-core</artifactId>-->
  69. <!--</exclusion>-->
  70. <!--<exclusion>-->
  71. <!--<groupId>javax.activation</groupId>-->
  72. <!--<artifactId>activation</artifactId>-->
  73. <!--</exclusion>-->
  74. </exclusions>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-log4j2</artifactId>
  79. </dependency>
  80. <!--<dependency>-->
  81. <!--<groupId>org.springframework.boot</groupId>-->
  82. <!--<artifactId>spring-boot-starter-security</artifactId>-->
  83. <!--</dependency>-->
  84. <!--<dependency>-->
  85. <!--<groupId>org.springframework.security.oauth</groupId>-->
  86. <!--<artifactId>spring-security-oauth2</artifactId>-->
  87. <!--<version>2.3.3.RELEASE</version>-->
  88. <!--</dependency>-->
  89. <!--<dependency>-->
  90. <!--<groupId>org.springframework.security</groupId>-->
  91. <!--<artifactId>spring-security-jwt</artifactId>-->
  92. <!--<version>1.1.0.RELEASE</version>-->
  93. <!--</dependency>-->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-data-redis</artifactId>
  97. <exclusions>
  98. <!--<exclusion>-->
  99. <!--&lt;!&ndash; 解决jdk11 netty版本低问题&ndash;&gt;-->
  100. <!--<artifactId>netty-common</artifactId>-->
  101. <!--<groupId>io.netty</groupId>-->
  102. <!--</exclusion>-->
  103. <!--<exclusion>-->
  104. <!--&lt;!&ndash; 解决jdk11 netty版本低问题&ndash;&gt;-->
  105. <!--<artifactId>netty-handler</artifactId>-->
  106. <!--<groupId>io.netty</groupId>-->
  107. <!--</exclusion>-->
  108. <!--<exclusion>-->
  109. <!--&lt;!&ndash; 解决jdk11 netty版本低问题&ndash;&gt;-->
  110. <!--<artifactId>netty-transport</artifactId>-->
  111. <!--<groupId>io.netty</groupId>-->
  112. <!--</exclusion>-->
  113. </exclusions>
  114. </dependency>
  115. <!-- spring cloud -->
  116. <dependency>
  117. <groupId>org.springframework.cloud</groupId>
  118. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>javax.servlet</groupId>
  122. <artifactId>javax.servlet-api</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.squareup.okhttp3</groupId>
  126. <artifactId>okhttp</artifactId>
  127. <version>3.9.1</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.commons</groupId>
  131. <artifactId>commons-dbcp2</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>mysql</groupId>
  135. <artifactId>mysql-connector-java</artifactId>
  136. <scope>runtime</scope>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.microsoft.sqlserver</groupId>
  140. <artifactId>mssql-jdbc</artifactId>
  141. <version>7.4.1.jre8</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-starter-test</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.tomcat.embed</groupId>
  150. <artifactId>tomcat-embed-jasper</artifactId>
  151. </dependency>
  152. <!--<dependency>
  153. <groupId>org.springframework.boot</groupId>
  154. <artifactId>spring-boot-devtools</artifactId>
  155. <optional>false</optional>
  156. </dependency>-->
  157. <dependency>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-configuration-processor</artifactId>
  160. <optional>true</optional>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.apache.shiro</groupId>
  164. <artifactId>shiro-spring</artifactId>
  165. <version>1.4.0</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>com.auth0</groupId>
  169. <artifactId>java-jwt</artifactId>
  170. <version>3.2.0</version>
  171. </dependency>
  172. <!-- swagger2 start -->
  173. <dependency>
  174. <groupId>io.springfox</groupId>
  175. <artifactId>springfox-swagger2</artifactId>
  176. <version>2.8.0</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>io.springfox</groupId>
  180. <artifactId>springfox-swagger-ui</artifactId>
  181. <version>2.8.0</version>
  182. </dependency>
  183. <!--swagger2 end -->
  184. <!-- Swagger 文档皮肤 -->
  185. <dependency>
  186. <groupId>com.github.xiaoymin</groupId>
  187. <artifactId>swagger-bootstrap-ui</artifactId>
  188. <version>1.9.6</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>com.alibaba</groupId>
  192. <artifactId>fastjson</artifactId>
  193. <version>1.2.46</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.commons</groupId>
  197. <artifactId>commons-lang3</artifactId>
  198. <version>3.7</version>
  199. </dependency>
  200. <!-- Mybatis-plus -->
  201. <dependency>
  202. <groupId>com.baomidou</groupId>
  203. <artifactId>mybatisplus-spring-boot-starter</artifactId>
  204. <version>1.0.5</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.baomidou</groupId>
  208. <artifactId>mybatis-plus</artifactId>
  209. <version>2.1.9</version>
  210. </dependency>
  211. <!-- Mybatis-plus end-->
  212. <!-- java.lang.ClassNotFoundException: javax.xml.bind.JAXBException/javax.xml.bind.annotation.XmlType问题解决 -->
  213. <dependency>
  214. <groupId>javax.xml.bind</groupId>
  215. <artifactId>jaxb-api</artifactId>
  216. <version>2.3.0</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>com.sun.xml.bind</groupId>
  220. <artifactId>jaxb-impl</artifactId>
  221. <version>2.3.0</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.sun.xml.bind</groupId>
  225. <artifactId>jaxb-core</artifactId>
  226. <version>2.3.0</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>javax.activation</groupId>
  230. <artifactId>activation</artifactId>
  231. <version>1.1.1</version>
  232. </dependency>
  233. <!-- https://mvnrepository.com/artifact/io.netty/netty-all
  234. 解决 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module-->
  235. <!--<dependency>-->
  236. <!--<groupId>io.netty</groupId>-->
  237. <!--<artifactId>netty-all</artifactId>-->
  238. <!--<version>5.0.0.Alpha2</version>-->
  239. <!--</dependency>-->
  240. <!-- oltu oauth2 -->
  241. <dependency>
  242. <groupId>org.apache.oltu.oauth2</groupId>
  243. <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
  244. <version>${oltu.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.apache.oltu.oauth2</groupId>
  248. <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
  249. <version>${oltu.version}</version>
  250. </dependency>
  251. <!-- log4j 注解 -->
  252. <dependency>
  253. <groupId>org.projectlombok</groupId>
  254. <artifactId>lombok</artifactId>
  255. </dependency>
  256. <!-- shiro-thymeleaf 2.0.0-->
  257. <dependency>
  258. <groupId>com.github.theborakompanioni</groupId>
  259. <artifactId>thymeleaf-extras-shiro</artifactId>
  260. <version>1.2.1</version>
  261. </dependency>
  262. <!-- shiro redis -->
  263. <dependency>
  264. <groupId>org.crazycake</groupId>
  265. <artifactId>shiro-redis</artifactId>
  266. <version>3.2.3</version>
  267. </dependency>
  268. </dependencies>
  269. <build>
  270. <plugins>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-compiler-plugin</artifactId>
  274. <configuration>
  275. <encoding>${project.build.sourceEncoding}</encoding>
  276. <source>${java.version}</source>
  277. <target>${java.version}</target>
  278. <!--jdk 11 netty 4 运行出错-->
  279. <!--<compilerArgs>-->
  280. <!--<arg>-J&#45;&#45;add-opens=java.base/jdk.internal.misc=ALL-UNNAMED</arg>-->
  281. <!--<arg>&#45;&#45;add-opens java.base/jdk.internal.misc=ALL-UNNAMED</arg>-->
  282. <!--<arg>-Dio.netty.tryReflectionSetAccessible=true</arg>-->
  283. <!--<arg>&#45;&#45;illegal-access=warn</arg>-->
  284. <!--</compilerArgs>-->
  285. </configuration>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.springframework.boot</groupId>
  289. <artifactId>spring-boot-maven-plugin</artifactId>
  290. <executions>
  291. <execution>
  292. <goals>
  293. <goal>repackage</goal>
  294. </goals>
  295. </execution>
  296. </executions>
  297. </plugin>
  298. </plugins>
  299. </build>
  300. </project>