杭州市委办项管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

210 lines
6.9KB

  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>project-management</artifactId>
  7. <groupId>com.ningdatech</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>syn-data-task</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.google.guava</groupId>
  19. <artifactId>guava</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>cn.hutool</groupId>
  23. <artifactId>hutool-all</artifactId>
  24. <version>5.8.5</version>
  25. </dependency>
  26. <!-- mysql -->
  27. <dependency>
  28. <groupId>mysql</groupId>
  29. <artifactId>mysql-connector-java</artifactId>
  30. </dependency>
  31. <!--lombok-->
  32. <dependency>
  33. <groupId>org.projectlombok</groupId>
  34. <artifactId>lombok</artifactId>
  35. </dependency>
  36. <!-- mybatis plus-->
  37. <dependency>
  38. <groupId>com.baomidou</groupId>
  39. <artifactId>mybatis-plus-boot-starter</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-freemarker</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.commons</groupId>
  47. <artifactId>commons-lang3</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.alibaba</groupId>
  51. <artifactId>fastjson</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.tomcat.embed</groupId>
  55. <artifactId>tomcat-embed-core</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-validation</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-web</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-jdbc</artifactId>
  68. </dependency>
  69. <!--实现springboot的热加载-->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-devtools</artifactId>
  73. <optional>true</optional>
  74. <scope>true</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-aop</artifactId>
  79. </dependency>
  80. <!--cache-->
  81. <dependency>
  82. <groupId>com.github.ben-manes.caffeine</groupId>
  83. <artifactId>caffeine</artifactId>
  84. </dependency>
  85. <!--引入jwt-->
  86. <dependency>
  87. <groupId>com.auth0</groupId>
  88. <artifactId>java-jwt</artifactId>
  89. <version>3.10.3</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-configuration-processor</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.ningdatech</groupId>
  97. <artifactId>nd-log-starter</artifactId>
  98. <version>1.0.0</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.ningdatech</groupId>
  102. <artifactId>nd-basic</artifactId>
  103. <exclusions>
  104. <exclusion>
  105. <groupId>org.slf4j</groupId>
  106. <artifactId>slf4j-log4j12</artifactId>
  107. </exclusion>
  108. </exclusions>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.ningdatech</groupId>
  112. <artifactId>nd-swagger2-starter</artifactId>
  113. <exclusions>
  114. <exclusion>
  115. <groupId>org.slf4j</groupId>
  116. <artifactId>slf4j-log4j12</artifactId>
  117. </exclusion>
  118. </exclusions>
  119. </dependency>
  120. </dependencies>
  121. <!-- 打包 -->
  122. <!--配置环境的profile-->
  123. <profiles>
  124. <profile>
  125. <id>dev</id>
  126. <properties>
  127. <!--使用${environment}获取值-->
  128. <environment>dev</environment>
  129. </properties>
  130. </profile>
  131. <profile>
  132. <id>test</id>
  133. <properties>
  134. <environment>test</environment>
  135. </properties>
  136. </profile>
  137. <profile>
  138. <id>pre</id>
  139. <properties>
  140. <environment>pre</environment>
  141. </properties>
  142. </profile>
  143. <profile>
  144. <id>prod</id>
  145. <properties>
  146. <environment>prod</environment>
  147. </properties>
  148. </profile>
  149. </profiles>
  150. <build>
  151. <resources>
  152. <resource>
  153. <directory>src/main/resources</directory>
  154. <includes>
  155. <include>**/*</include>
  156. </includes>
  157. </resource>
  158. <resource>
  159. <directory>src/main/java</directory>
  160. <includes>
  161. <include>**/*.xml</include>
  162. </includes>
  163. </resource>
  164. <resource>
  165. <directory>src/main/lib</directory>
  166. <targetPath>BOOT-INF/lib/</targetPath>
  167. <includes>
  168. <include>**/*.jar</include>
  169. </includes>
  170. </resource>
  171. <resource>
  172. <directory>src/main/resources</directory>
  173. <targetPath>BOOT-INF/classes/</targetPath>
  174. </resource>
  175. </resources>
  176. <finalName>${project.artifactId}</finalName>
  177. <plugins>
  178. <plugin>
  179. <groupId>org.springframework.boot</groupId>
  180. <artifactId>spring-boot-maven-plugin</artifactId>
  181. <version>2.6.8</version>
  182. <configuration>
  183. <includeSystemScope>true</includeSystemScope>
  184. </configuration>
  185. <executions>
  186. <execution>
  187. <goals>
  188. <goal>repackage</goal>
  189. </goals>
  190. </execution>
  191. </executions>
  192. </plugin>
  193. <!-- 跳过单元测试 -->
  194. <plugin>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-surefire-plugin</artifactId>
  197. <configuration>
  198. <skipTests>true</skipTests>
  199. </configuration>
  200. </plugin>
  201. </plugins>
  202. </build>
  203. </project>