杭州市委办项管
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

318 linhas
11KB

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