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

349 lines
12KB

  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>nl.basjes.parse.useragent</groupId>
  69. <artifactId>yauaa</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>jakarta.persistence</groupId>
  73. <artifactId>jakarta.persistence-api</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.data</groupId>
  77. <artifactId>spring-data-jpa</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.hibernate</groupId>
  81. <artifactId>hibernate-core</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-data-jpa</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-web</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-jdbc</artifactId>
  94. </dependency>
  95. <!--实现springboot的热加载-->
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-devtools</artifactId>
  99. <optional>true</optional>
  100. <scope>true</scope>
  101. </dependency>
  102. <!-- pg -->
  103. <dependency>
  104. <groupId>org.postgresql</groupId>
  105. <artifactId>postgresql</artifactId>
  106. <version>42.4.2</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.alibaba</groupId>
  110. <artifactId>druid-spring-boot-starter</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.springframework.boot</groupId>
  114. <artifactId>spring-boot-starter-aop</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springframework</groupId>
  118. <artifactId>spring-test</artifactId>
  119. </dependency>
  120. <!--cache-->
  121. <dependency>
  122. <groupId>com.github.ben-manes.caffeine</groupId>
  123. <artifactId>caffeine</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.httpcomponents</groupId>
  127. <artifactId>httpclient</artifactId>
  128. </dependency>
  129. <!-- jwt -->
  130. <dependency>
  131. <groupId>com.auth0</groupId>
  132. <artifactId>java-jwt</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>io.jsonwebtoken</groupId>
  136. <artifactId>jjwt-api</artifactId>
  137. <version>${jjwt.version}</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>io.jsonwebtoken</groupId>
  141. <artifactId>jjwt-impl</artifactId>
  142. <version>${jjwt.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>io.jsonwebtoken</groupId>
  146. <artifactId>jjwt-jackson</artifactId>
  147. <version>${jjwt.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.apache.poi</groupId>
  151. <artifactId>poi</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.poi</groupId>
  155. <artifactId>poi-ooxml</artifactId>
  156. </dependency>
  157. <!-- 阿里云oss -->
  158. <dependency>
  159. <groupId>com.aliyun.oss</groupId>
  160. <artifactId>aliyun-sdk-oss</artifactId>
  161. <version>3.15.0</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>junit</groupId>
  165. <artifactId>junit</artifactId>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.aspectj</groupId>
  170. <artifactId>aspectjweaver</artifactId>
  171. </dependency>
  172. <!--pdf工具依赖 start-->
  173. <dependency>
  174. <groupId>com.itextpdf</groupId>
  175. <artifactId>itextpdf</artifactId>
  176. <version>5.5.13</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.itextpdf</groupId>
  180. <artifactId>itext-asian</artifactId>
  181. <version>5.2.0</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.pdfbox</groupId>
  185. <artifactId>pdfbox</artifactId>
  186. <version>2.0.4</version>
  187. </dependency>
  188. <!--pdf工具依赖 end-->
  189. <dependency>
  190. <groupId>org.jxls</groupId>
  191. <artifactId>jxls-jexcel</artifactId>
  192. <version>1.0.6</version>
  193. </dependency>
  194. <!--Spring boot 测试-->
  195. <dependency>
  196. <groupId>org.springframework.boot</groupId>
  197. <artifactId>spring-boot-starter-test</artifactId>
  198. <scope>test</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.springframework.boot</groupId>
  202. <artifactId>spring-boot-starter-freemarker</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.mapstruct</groupId>
  206. <artifactId>mapstruct</artifactId>
  207. <version>1.4.2.Final</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.mapstruct</groupId>
  211. <artifactId>mapstruct-processor</artifactId>
  212. <version>1.4.2.Final</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.springframework.boot</groupId>
  216. <artifactId>spring-boot-configuration-processor</artifactId>
  217. </dependency>
  218. <dependency>
  219. <groupId>com.ningdatech</groupId>
  220. <artifactId>nd-log-starter</artifactId>
  221. <version>1.0.0</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.ningdatech</groupId>
  225. <artifactId>nd-basic</artifactId>
  226. <exclusions>
  227. <exclusion>
  228. <groupId>org.slf4j</groupId>
  229. <artifactId>slf4j-log4j12</artifactId>
  230. </exclusion>
  231. </exclusions>
  232. </dependency>
  233. <dependency>
  234. <groupId>com.ningdatech</groupId>
  235. <artifactId>nd-swagger2-starter</artifactId>
  236. <exclusions>
  237. <exclusion>
  238. <groupId>org.slf4j</groupId>
  239. <artifactId>slf4j-log4j12</artifactId>
  240. </exclusion>
  241. </exclusions>
  242. </dependency>
  243. <dependency>
  244. <groupId>com.ningdatech</groupId>
  245. <artifactId>nd-flowable-starter</artifactId>
  246. </dependency>
  247. <dependency>
  248. <groupId>com.ningdatech</groupId>
  249. <artifactId>nd-zwdd-starter</artifactId>
  250. <exclusions>
  251. <exclusion>
  252. <groupId>org.slf4j</groupId>
  253. <artifactId>slf4j-log4j12</artifactId>
  254. </exclusion>
  255. </exclusions>
  256. <version>1.0.0</version>
  257. </dependency>
  258. </dependencies>
  259. <!-- 打包 -->
  260. <!--配置环境的profile-->
  261. <profiles>
  262. <profile>
  263. <id>dev</id>
  264. <properties>
  265. <!--使用${environment}获取值-->
  266. <environment>dev</environment>
  267. </properties>
  268. </profile>
  269. <profile>
  270. <id>test</id>
  271. <properties>
  272. <environment>test</environment>
  273. </properties>
  274. </profile>
  275. <profile>
  276. <id>pre</id>
  277. <properties>
  278. <environment>pre</environment>
  279. </properties>
  280. </profile>
  281. <profile>
  282. <id>prod</id>
  283. <properties>
  284. <environment>prod</environment>
  285. </properties>
  286. </profile>
  287. </profiles>
  288. <build>
  289. <resources>
  290. <resource>
  291. <directory>src/main/resources</directory>
  292. <includes>
  293. <include>**/*</include>
  294. </includes>
  295. </resource>
  296. <resource>
  297. <directory>src/main/java</directory>
  298. <includes>
  299. <include>**/*.xml</include>
  300. </includes>
  301. </resource>
  302. <resource>
  303. <directory>src/main/lib</directory>
  304. <targetPath>BOOT-INF/lib/</targetPath>
  305. <includes>
  306. <include>**/*.jar</include>
  307. </includes>
  308. </resource>
  309. <resource>
  310. <directory>src/main/resources</directory>
  311. <targetPath>BOOT-INF/classes/</targetPath>
  312. </resource>
  313. </resources>
  314. <finalName>${project.artifactId}</finalName>
  315. <plugins>
  316. <plugin>
  317. <groupId>org.springframework.boot</groupId>
  318. <artifactId>spring-boot-maven-plugin</artifactId>
  319. <version>2.6.8</version>
  320. <configuration>
  321. <includeSystemScope>true</includeSystemScope>
  322. </configuration>
  323. <executions>
  324. <execution>
  325. <goals>
  326. <goal>repackage</goal>
  327. </goals>
  328. </execution>
  329. </executions>
  330. </plugin>
  331. <!-- 跳过单元测试 -->
  332. <plugin>
  333. <groupId>org.apache.maven.plugins</groupId>
  334. <artifactId>maven-surefire-plugin</artifactId>
  335. <configuration>
  336. <skipTests>true</skipTests>
  337. </configuration>
  338. </plugin>
  339. </plugins>
  340. </build>
  341. </project>