pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.0.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <groupId>com.gct.dlmodel</groupId>
  13. <artifactId>microarch_dl_model</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>dl_model</name>
  16. <description>深度学习模型管理服务</description>
  17. <dependencies>
  18. <dependency>
  19. <groupId>de.ruedigermoeller</groupId>
  20. <artifactId>fst</artifactId>
  21. <version>2.57</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.gct.common.oss</groupId>
  25. <artifactId>oss-api</artifactId>
  26. <exclusions>
  27. <exclusion>
  28. <groupId>com.squareup.okhttp3</groupId>
  29. <artifactId>okhttp</artifactId>
  30. </exclusion>
  31. </exclusions>
  32. <version>4.0-SNAPSHOT</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.squareup.okhttp3</groupId>
  36. <artifactId>okhttp</artifactId>
  37. <version>4.9.1</version>
  38. </dependency>
  39. <!--common核心包依赖-->
  40. <dependency>
  41. <groupId>com.gct.common.core</groupId>
  42. <artifactId>common-core</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.gct.common.security</groupId>
  46. <artifactId>common-security</artifactId>
  47. </dependency>
  48. <!--common格式化功图-->
  49. <dependency>
  50. <groupId>com.gct.common.util</groupId>
  51. <artifactId>common-util</artifactId>
  52. </dependency>
  53. <!--nacos 注册中心依赖-->
  54. <dependency>
  55. <groupId>com.alibaba.cloud</groupId>
  56. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.alibaba.cloud</groupId>
  60. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  61. </dependency>
  62. <!-- <dependency>
  63. <groupId>com.alibaba.csp</groupId>
  64. <artifactId>sentinel-datasource-nacos</artifactId>
  65. </dependency>-->
  66. <dependency>
  67. <groupId>com.alibaba.cloud</groupId>
  68. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  69. </dependency>
  70. <!--web 依赖-->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-web</artifactId>
  74. </dependency>
  75. <!-- spring security -->
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-security</artifactId>
  79. </dependency>
  80. <!--RocketMQ starter-->
  81. <!-- <dependency>-->
  82. <!-- <groupId>org.apache.rocketmq</groupId>-->
  83. <!-- <artifactId>rocketmq-spring-boot-starter</artifactId>-->
  84. <!-- <version>2.2.0</version>-->
  85. <!-- </dependency>-->
  86. <!--lombok-->
  87. <dependency>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <optional>true</optional>
  91. <scope>provided</scope>
  92. </dependency>
  93. <!-- 与数据库操作相关依赖 -->
  94. <!-- <dependency>-->
  95. <!-- <groupId>org.springframework.boot</groupId>-->
  96. <!-- <artifactId>spring-boot-starter-jdbc</artifactId>-->
  97. <!-- </dependency>-->
  98. <!-- <dependency>-->
  99. <!-- <groupId>org.postgresql</groupId>-->
  100. <!-- <artifactId>postgresql</artifactId>-->
  101. <!-- </dependency>-->
  102. <!--文件上传相关-->
  103. <dependency>
  104. <groupId>commons-io</groupId>
  105. <artifactId>commons-io</artifactId>
  106. </dependency>
  107. <!--junit测试-->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-test</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-validation</artifactId>
  116. </dependency>
  117. <!-- <dependency>-->
  118. <!-- <groupId>org.apache.thrift</groupId>-->
  119. <!-- <artifactId>libthrift</artifactId>-->
  120. <!-- </dependency>-->
  121. <dependency>
  122. <groupId>junit</groupId>
  123. <artifactId>junit</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework</groupId>
  127. <artifactId>spring-test</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-test</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.junit.jupiter</groupId>
  135. <artifactId>junit-jupiter-api</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.commons</groupId>
  139. <artifactId>commons-pool2</artifactId>
  140. </dependency>
  141. <!-- <dependency>-->
  142. <!-- <groupId>org.springframework.boot</groupId>-->
  143. <!-- <artifactId>spring-boot-devtools</artifactId>-->
  144. <!-- <optional>true</optional>-->
  145. <!-- </dependency>-->
  146. <dependency>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-configuration-processor</artifactId>
  149. <optional>true</optional>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.springframework.cloud</groupId>
  153. <artifactId>spring-cloud-starter-openfeign</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.springframework.boot</groupId>
  157. <artifactId>spring-boot-configuration-processor</artifactId>
  158. </dependency>
  159. <!-- <dependency>-->
  160. <!-- <groupId>org.springframework.boot</groupId>-->
  161. <!-- <artifactId>spring-boot-starter-quartz</artifactId>-->
  162. <!-- </dependency>-->
  163. </dependencies>
  164. <dependencyManagement>
  165. <dependencies>
  166. <!-- Spring Cloud Hoxton 统一版本 -->
  167. <dependency>
  168. <groupId>org.springframework.cloud</groupId>
  169. <artifactId>spring-cloud-dependencies</artifactId>
  170. <version>Hoxton.SR3</version>
  171. <type>pom</type>
  172. <scope>import</scope>
  173. </dependency>
  174. <!-- Spring Cloud Alibaba 统一版本-->
  175. <dependency>
  176. <groupId>com.alibaba.cloud</groupId>
  177. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  178. <version>2.2.1.RELEASE</version>
  179. <type>pom</type>
  180. <scope>import</scope>
  181. </dependency>
  182. <!-- 地航发布的组件 统一版本 -->
  183. <dependency>
  184. <groupId>com.gct.common.core</groupId>
  185. <artifactId>common-core</artifactId>
  186. <version>${com-gct-common-core.version}</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.gct.common.security</groupId>
  190. <artifactId>common-security</artifactId>
  191. <version>${com-gct-common-security.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.gct.common.util</groupId>
  195. <artifactId>common-util</artifactId>
  196. <version>${com-gct-common-util.version}</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>commons-io</groupId>
  200. <artifactId>commons-io</artifactId>
  201. <version>${commons-io.version}</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.apache.thrift</groupId>
  205. <artifactId>libthrift</artifactId>
  206. <version>${org.apache.thrift.version}</version>
  207. </dependency>
  208. <!--lombok-->
  209. <dependency>
  210. <groupId>org.projectlombok</groupId>
  211. <artifactId>lombok</artifactId>
  212. <version>${lombok.version}</version>
  213. </dependency>
  214. </dependencies>
  215. </dependencyManagement>
  216. <properties>
  217. <java.version>1.8</java.version>
  218. <jdk.version>8</jdk.version>
  219. <com-gct-common-core.version>2.0-SNAPSHOT</com-gct-common-core.version>
  220. <com-gct-common-security.version>2.0-SNAPSHOT</com-gct-common-security.version>
  221. <com-gct-common-util.version>2.0-SNAPSHOT</com-gct-common-util.version>
  222. <commons-io.version>2.8.0</commons-io.version>
  223. <org.apache.thrift.version>0.13.0</org.apache.thrift.version>
  224. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  225. <lombok.version>1.16.18</lombok.version>
  226. <lombok-maven-plugin.version>1.16.6.1</lombok-maven-plugin.version>
  227. </properties>
  228. <build>
  229. <resources>
  230. <resource>
  231. <directory>src/main/java</directory>
  232. <excludes>
  233. <exclude>**/*.java</exclude>
  234. </excludes>
  235. </resource>
  236. <resource>
  237. <directory>src/main/resources</directory>
  238. <includes>
  239. <include>**/*.*</include>
  240. </includes>
  241. </resource>
  242. </resources>
  243. <plugins>
  244. <plugin>
  245. <groupId>org.springframework.boot</groupId>
  246. <artifactId>spring-boot-maven-plugin</artifactId>
  247. <configuration>
  248. <fork>true</fork>
  249. </configuration>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-compiler-plugin</artifactId>
  254. <version>${maven-compiler-plugin.version}</version>
  255. <configuration>
  256. <!-- 设置是否执行注释处理。 仅适用于JDK1.6如果没有设置,编译和注释处理都同时执行。
  257. 允许值为:
  258. none - no annotation processing is performed.
  259. only - only annotation processing is done, no compilation.
  260. 设置为only complie 或者build一下就可以运行annotation processor了
  261. 平常走默认值即可-->
  262. <!--<proc>only</proc>-->
  263. <source>${jdk.version}</source>
  264. <target>${jdk.version}</target>
  265. <encoding>utf-8</encoding>
  266. </configuration>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.projectlombok</groupId>
  270. <artifactId>lombok-maven-plugin</artifactId>
  271. <version>${lombok-maven-plugin.version}</version>
  272. </plugin>
  273. <!-- 打包过程忽略Junit测试 -->
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-surefire-plugin</artifactId>
  277. <configuration>
  278. <skip>true</skip>
  279. </configuration>
  280. </plugin>
  281. </plugins>
  282. </build>
  283. </project>