杭州市委办项管
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.

301 lines
10KB

  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.ningdatech</groupId>
  7. <artifactId>project-management</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <artifactId>pmapi</artifactId>
  11. <version>1.0.0</version>
  12. <properties>
  13. <jjwt.version>0.11.5</jjwt.version>
  14. </properties>
  15. <dependencies>
  16. <!--Spring boot 安全框架-->
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-security</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.google.guava</groupId>
  23. <artifactId>guava</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>cn.hutool</groupId>
  27. <artifactId>hutool-all</artifactId>
  28. <version>5.8.5</version>
  29. </dependency>
  30. <!--lombok-->
  31. <dependency>
  32. <groupId>org.projectlombok</groupId>
  33. <artifactId>lombok</artifactId>
  34. </dependency>
  35. <!-- mybatis plus-->
  36. <dependency>
  37. <groupId>com.baomidou</groupId>
  38. <artifactId>mybatis-plus-boot-starter</artifactId>
  39. </dependency>
  40. <!--Spring boot Redis-->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-data-redis</artifactId>
  44. </dependency>
  45. <!--spring boot 集成redis所需common-pool2-->
  46. <dependency>
  47. <groupId>org.apache.commons</groupId>
  48. <artifactId>commons-pool2</artifactId>
  49. <version>${commons-pool2.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.commons</groupId>
  53. <artifactId>commons-lang3</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.alibaba</groupId>
  57. <artifactId>fastjson</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.tomcat.embed</groupId>
  61. <artifactId>tomcat-embed-core</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-validation</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.hibernate</groupId>
  69. <artifactId>hibernate-core</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-web</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-jdbc</artifactId>
  78. </dependency>
  79. <!--实现springboot的热加载-->
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-devtools</artifactId>
  83. <optional>true</optional>
  84. <scope>true</scope>
  85. </dependency>
  86. <!-- pg -->
  87. <dependency>
  88. <groupId>org.postgresql</groupId>
  89. <artifactId>postgresql</artifactId>
  90. <version>42.4.2</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.alibaba</groupId>
  94. <artifactId>druid-spring-boot-starter</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-aop</artifactId>
  99. </dependency>
  100. <!--cache-->
  101. <dependency>
  102. <groupId>com.github.ben-manes.caffeine</groupId>
  103. <artifactId>caffeine</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.httpcomponents</groupId>
  107. <artifactId>httpclient</artifactId>
  108. </dependency>
  109. <!-- jwt -->
  110. <dependency>
  111. <groupId>com.auth0</groupId>
  112. <artifactId>java-jwt</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>io.jsonwebtoken</groupId>
  116. <artifactId>jjwt-api</artifactId>
  117. <version>${jjwt.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>io.jsonwebtoken</groupId>
  121. <artifactId>jjwt-impl</artifactId>
  122. <version>${jjwt.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>io.jsonwebtoken</groupId>
  126. <artifactId>jjwt-jackson</artifactId>
  127. <version>${jjwt.version}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.poi</groupId>
  131. <artifactId>poi</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.poi</groupId>
  135. <artifactId>poi-ooxml</artifactId>
  136. </dependency>
  137. <!-- 阿里云oss -->
  138. <dependency>
  139. <groupId>com.aliyun.oss</groupId>
  140. <artifactId>aliyun-sdk-oss</artifactId>
  141. <version>3.15.0</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>junit</groupId>
  145. <artifactId>junit</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.aspectj</groupId>
  150. <artifactId>aspectjweaver</artifactId>
  151. </dependency>
  152. <!--Spring boot 测试-->
  153. <dependency>
  154. <groupId>org.springframework.boot</groupId>
  155. <artifactId>spring-boot-starter-test</artifactId>
  156. <scope>test</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.mapstruct</groupId>
  160. <artifactId>mapstruct</artifactId>
  161. <version>1.5.3.Final</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.mapstruct</groupId>
  165. <artifactId>mapstruct-processor</artifactId>
  166. <version>1.5.3.Final</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-configuration-processor</artifactId>
  171. </dependency>
  172. <dependency>
  173. <groupId>com.ningdatech</groupId>
  174. <artifactId>nd-log-starter</artifactId>
  175. <version>1.0.0</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>com.ningdatech</groupId>
  179. <artifactId>nd-basic</artifactId>
  180. <exclusions>
  181. <exclusion>
  182. <groupId>org.slf4j</groupId>
  183. <artifactId>slf4j-log4j12</artifactId>
  184. </exclusion>
  185. </exclusions>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.ningdatech</groupId>
  189. <artifactId>nd-swagger2-starter</artifactId>
  190. <exclusions>
  191. <exclusion>
  192. <groupId>org.slf4j</groupId>
  193. <artifactId>slf4j-log4j12</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.ningdatech</groupId>
  199. <artifactId>nd-flowable-starter</artifactId>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.ningdatech</groupId>
  203. <artifactId>nd-zwdd-starter</artifactId>
  204. <exclusions>
  205. <exclusion>
  206. <groupId>org.slf4j</groupId>
  207. <artifactId>slf4j-log4j12</artifactId>
  208. </exclusion>
  209. </exclusions>
  210. <version>1.0.0</version>
  211. </dependency>
  212. </dependencies>
  213. <!-- 打包 -->
  214. <!--配置环境的profile-->
  215. <profiles>
  216. <profile>
  217. <id>dev</id>
  218. <properties>
  219. <!--使用${environment}获取值-->
  220. <environment>dev</environment>
  221. </properties>
  222. </profile>
  223. <profile>
  224. <id>test</id>
  225. <properties>
  226. <environment>test</environment>
  227. </properties>
  228. </profile>
  229. <profile>
  230. <id>pre</id>
  231. <properties>
  232. <environment>pre</environment>
  233. </properties>
  234. </profile>
  235. <profile>
  236. <id>prod</id>
  237. <properties>
  238. <environment>prod</environment>
  239. </properties>
  240. </profile>
  241. </profiles>
  242. <build>
  243. <resources>
  244. <resource>
  245. <directory>src/main/resources</directory>
  246. <includes>
  247. <include>**/*</include>
  248. </includes>
  249. </resource>
  250. <resource>
  251. <directory>src/main/java</directory>
  252. <includes>
  253. <include>**/*.xml</include>
  254. </includes>
  255. </resource>
  256. <resource>
  257. <directory>src/main/lib</directory>
  258. <targetPath>BOOT-INF/lib/</targetPath>
  259. <includes>
  260. <include>**/*.jar</include>
  261. </includes>
  262. </resource>
  263. <resource>
  264. <directory>src/main/resources</directory>
  265. <targetPath>BOOT-INF/classes/</targetPath>
  266. </resource>
  267. </resources>
  268. <finalName>${project.artifactId}</finalName>
  269. <plugins>
  270. <plugin>
  271. <groupId>org.springframework.boot</groupId>
  272. <artifactId>spring-boot-maven-plugin</artifactId>
  273. <version>2.6.8</version>
  274. <configuration>
  275. <includeSystemScope>true</includeSystemScope>
  276. </configuration>
  277. <executions>
  278. <execution>
  279. <goals>
  280. <goal>repackage</goal>
  281. </goals>
  282. </execution>
  283. </executions>
  284. </plugin>
  285. <!-- 跳过单元测试 -->
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-surefire-plugin</artifactId>
  289. <configuration>
  290. <skipTests>true</skipTests>
  291. </configuration>
  292. </plugin>
  293. </plugins>
  294. </build>
  295. </project>