pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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.28.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.28.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. <!-- OkHttps网络请求库: http://okhttps.ejlchina.com/ -->
  78. <dependency>
  79. <groupId>com.ejlchina</groupId>
  80. <artifactId>okhttps</artifactId>
  81. <version>3.2.0</version>
  82. </dependency>
  83. <!-- redis java客户端jar包 -->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-data-redis</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.commons</groupId>
  90. <artifactId>commons-pool2</artifactId>
  91. </dependency>
  92. <!--Alijson插件-->
  93. <dependency>
  94. <groupId>com.alibaba</groupId>
  95. <artifactId>fastjson</artifactId>
  96. <version>1.2.73</version>
  97. </dependency>
  98. <!-- ConfigurationProperties -->
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-configuration-processor</artifactId>
  102. <optional>true</optional>
  103. </dependency>
  104. </dependencies>
  105. <!-- 构建配置 -->
  106. <build>
  107. <!-- 配置资源目录 -->
  108. <resources>
  109. <resource>
  110. <directory>src/main/java</directory>
  111. <includes>
  112. <include>**/*.xml</include>
  113. </includes>
  114. </resource>
  115. <resource>
  116. <directory>src/main/resources</directory>
  117. <includes>
  118. <include>**/*.*</include>
  119. </includes>
  120. </resource>
  121. </resources>
  122. <plugins>
  123. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-jar-plugin</artifactId>
  127. <configuration>
  128. <archive>
  129. <manifest>
  130. <addClasspath>true</addClasspath>
  131. <classpathPrefix>lib/</classpathPrefix>
  132. <mainClass>${java.run.main.class}</mainClass>
  133. </manifest>
  134. </archive>
  135. </configuration>
  136. </plugin>
  137. <!-- 拷贝依赖的jar包到lib目录 -->
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-dependency-plugin</artifactId>
  141. <executions>
  142. <execution>
  143. <id>copy</id>
  144. <phase>package</phase>
  145. <goals>
  146. <goal>copy-dependencies</goal>
  147. </goals>
  148. <configuration>
  149. <outputDirectory>
  150. ${project.build.directory}/lib
  151. </outputDirectory>
  152. </configuration>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. </plugins>
  157. </build>
  158. </project>