pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.pj</groupId>
  5. <artifactId>sp-server</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <!-- SpringBoot -->
  8. <parent>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-starter-parent</artifactId>
  11. <version>2.3.3.RELEASE</version>
  12. </parent>
  13. <!-- 指定一些属性 -->
  14. <properties>
  15. <java.version>1.8</java.version>
  16. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  17. <!-- 主类地址,一定要配置,否则打包时运行会出错 -->
  18. <java.run.main.class>com.pj.SpServerApplication</java.run.main.class>
  19. </properties>
  20. <dependencies>
  21. <!-- springboot依赖 -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-aop</artifactId>
  29. </dependency>
  30. <!-- springboot集成 mybatis-plus -->
  31. <dependency>
  32. <groupId>com.baomidou</groupId>
  33. <artifactId>mybatis-plus-boot-starter</artifactId>
  34. <version>3.3.2</version>
  35. </dependency>
  36. <!-- pagehelper分页插件 -->
  37. <dependency>
  38. <groupId>com.github.pagehelper</groupId>
  39. <artifactId>pagehelper-spring-boot-starter</artifactId>
  40. <version>1.2.13</version>
  41. </dependency>
  42. <!-- mysql -->
  43. <dependency>
  44. <groupId>mysql</groupId>
  45. <artifactId>mysql-connector-java</artifactId>
  46. </dependency>
  47. <!-- 阿里 druid 连接池 -->
  48. <dependency>
  49. <groupId>com.alibaba</groupId>
  50. <artifactId>druid-spring-boot-starter</artifactId>
  51. <version>1.1.10</version>
  52. </dependency>
  53. <!-- 神器lombok插件 -->
  54. <dependency>
  55. <groupId>org.projectlombok</groupId>
  56. <artifactId>lombok</artifactId>
  57. <optional>true</optional>
  58. </dependency>
  59. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  60. <dependency>
  61. <groupId>cn.dev33</groupId>
  62. <artifactId>sa-token-spring-boot-starter</artifactId>
  63. <version>1.29.0</version>
  64. </dependency>
  65. <!-- Sa-Token 整合 Redis (使用jackson序列化方式) -->
  66. <dependency>
  67. <groupId>cn.dev33</groupId>
  68. <artifactId>sa-token-dao-redis-jackson</artifactId>
  69. <version>1.29.0</version>
  70. </dependency>
  71. <!-- 工具类大全 - 在线文档:https://hutool.cn/docs/#/ -->
  72. <dependency>
  73. <groupId>cn.hutool</groupId>
  74. <artifactId>hutool-all</artifactId>
  75. <version>5.7.15</version>
  76. </dependency>
  77. <!-- User-Agent 解析 -->
  78. <dependency>
  79. <groupId>eu.bitwalker</groupId>
  80. <artifactId>UserAgentUtils</artifactId>
  81. <version>1.21</version>
  82. </dependency>
  83. <!-- OkHttps网络请求库: http://okhttps.ejlchina.com/ -->
  84. <dependency>
  85. <groupId>com.ejlchina</groupId>
  86. <artifactId>okhttps</artifactId>
  87. <version>3.2.0</version>
  88. </dependency>
  89. <!-- redis java客户端jar包 -->
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-data-redis</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.commons</groupId>
  96. <artifactId>commons-pool2</artifactId>
  97. </dependency>
  98. <!--Alijson插件-->
  99. <dependency>
  100. <groupId>com.alibaba</groupId>
  101. <artifactId>fastjson</artifactId>
  102. <version>1.2.73</version>
  103. </dependency>
  104. <!-- ConfigurationProperties -->
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-configuration-processor</artifactId>
  108. <optional>true</optional>
  109. </dependency>
  110. </dependencies>
  111. <!-- 构建配置 -->
  112. <build>
  113. <!-- 配置资源目录 -->
  114. <resources>
  115. <resource>
  116. <directory>src/main/java</directory>
  117. <includes>
  118. <include>**/*.xml</include>
  119. </includes>
  120. </resource>
  121. <resource>
  122. <directory>src/main/resources</directory>
  123. <includes>
  124. <include>**/*.*</include>
  125. </includes>
  126. </resource>
  127. </resources>
  128. <plugins>
  129. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-jar-plugin</artifactId>
  133. <configuration>
  134. <archive>
  135. <manifest>
  136. <addClasspath>true</addClasspath>
  137. <classpathPrefix>lib/</classpathPrefix>
  138. <mainClass>${java.run.main.class}</mainClass>
  139. </manifest>
  140. </archive>
  141. </configuration>
  142. </plugin>
  143. <!-- 拷贝依赖的jar包到lib目录 -->
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-dependency-plugin</artifactId>
  147. <executions>
  148. <execution>
  149. <id>copy</id>
  150. <phase>package</phase>
  151. <goals>
  152. <goal>copy-dependencies</goal>
  153. </goals>
  154. <configuration>
  155. <outputDirectory>
  156. ${project.build.directory}/lib
  157. </outputDirectory>
  158. </configuration>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. </project>