pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 1999-2018 Alibaba Group Holding Ltd.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <parent>
  22. <groupId>com.xunmei</groupId>
  23. <artifactId>soc-visual</artifactId>
  24. <version>0.0.1-SNAPSHOT</version>
  25. </parent>
  26. <artifactId>soc-nacos</artifactId>
  27. <packaging>jar</packaging>
  28. <properties>
  29. <nacos.version>2.4.1</nacos.version>
  30. <spring-boot.version>2.7.18</spring-boot.version>
  31. <spring-boot-admin.version>2.7.11</spring-boot-admin.version>
  32. <kingbase-connector-java.version>8.6.0</kingbase-connector-java.version>
  33. <mysql-connector-java.version>8.0.33</mysql-connector-java.version>
  34. <kingbase-connector-java.version>8.6.0</kingbase-connector-java.version>
  35. <derby.version>10.14.2.0</derby.version>
  36. <nacos.lib.path>${project.basedir}/src/main/resources/lib</nacos.lib.path>
  37. </properties>
  38. <dependencyManagement>
  39. <dependencies>
  40. <!-- SpringBoot 依赖配置 -->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-dependencies</artifactId>
  44. <version>${spring-boot.version}</version>
  45. <type>pom</type>
  46. <scope>import</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.alibaba.nacos</groupId>
  50. <artifactId>nacos-all</artifactId>
  51. <version>${nacos.version}</version>
  52. <type>pom</type>
  53. <scope>import</scope>
  54. </dependency>
  55. </dependencies>
  56. </dependencyManagement>
  57. <dependencies>
  58. <dependency>
  59. <groupId>com.alibaba.nacos</groupId>
  60. <artifactId>nacos-auth</artifactId>
  61. <version>${nacos.version}</version>
  62. <scope>system</scope>
  63. <systemPath>${nacos.lib.path}/nacos-auth-${nacos.version}.jar</systemPath>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.alibaba.nacos</groupId>
  67. <artifactId>nacos-cmdb</artifactId>
  68. <version>${nacos.version}</version>
  69. <scope>system</scope>
  70. <systemPath>${nacos.lib.path}/nacos-cmdb-${nacos.version}.jar</systemPath>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.alibaba.nacos</groupId>
  74. <artifactId>nacos-config</artifactId>
  75. <version>${nacos.version}</version>
  76. <scope>system</scope>
  77. <systemPath>${nacos.lib.path}/nacos-config-${nacos.version}.jar</systemPath>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.alibaba.nacos</groupId>
  81. <artifactId>nacos-consistency</artifactId>
  82. <version>${nacos.version}</version>
  83. <scope>system</scope>
  84. <systemPath>${nacos.lib.path}/nacos-consistency-${nacos.version}.jar</systemPath>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.alibaba.nacos</groupId>
  88. <artifactId>nacos-control-plugin</artifactId>
  89. <version>${nacos.version}</version>
  90. <scope>system</scope>
  91. <systemPath>${nacos.lib.path}/nacos-control-plugin-${nacos.version}.jar</systemPath>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.alibaba.nacos</groupId>
  95. <artifactId>nacos-auth-plugin</artifactId>
  96. <version>${nacos.version}</version>
  97. <scope>system</scope>
  98. <systemPath>${nacos.lib.path}/nacos-auth-plugin-${nacos.version}.jar</systemPath>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.alibaba.nacos</groupId>
  102. <artifactId>nacos-core</artifactId>
  103. <version>${nacos.version}</version>
  104. <scope>system</scope>
  105. <systemPath>${nacos.lib.path}/nacos-core-${nacos.version}.jar</systemPath>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.alibaba.nacos</groupId>
  109. <artifactId>nacos-istio</artifactId>
  110. <version>${nacos.version}</version>
  111. <scope>system</scope>
  112. <systemPath>${nacos.lib.path}/nacos-istio-${nacos.version}.jar</systemPath>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.alibaba.nacos</groupId>
  116. <artifactId>nacos-naming</artifactId>
  117. <version>${nacos.version}</version>
  118. <scope>system</scope>
  119. <systemPath>${nacos.lib.path}/nacos-naming-${nacos.version}.jar</systemPath>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.alibaba.nacos</groupId>
  123. <artifactId>nacos-plugin-default-impl</artifactId>
  124. <version>${nacos.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.alibaba.nacos</groupId>
  128. <artifactId>nacos-prometheus</artifactId>
  129. <version>${nacos.version}</version>
  130. <scope>system</scope>
  131. <systemPath>${nacos.lib.path}/nacos-prometheus-${nacos.version}.jar</systemPath>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.alibaba.nacos</groupId>
  135. <artifactId>nacos-sys</artifactId>
  136. <version>${nacos.version}</version>
  137. <scope>system</scope>
  138. <systemPath>${nacos.lib.path}/nacos-sys-${nacos.version}.jar</systemPath>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.alibaba.nacos</groupId>
  142. <artifactId>nacos-custom-environment-plugin</artifactId>
  143. <version>${nacos.version}</version>
  144. <scope>system</scope>
  145. <systemPath>${nacos.lib.path}/nacos-custom-environment-plugin-${nacos.version}.jar</systemPath>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.alibaba.nacos</groupId>
  149. <artifactId>nacos-datasource-plugin</artifactId>
  150. <version>${nacos.version}</version>
  151. <scope>system</scope>
  152. <systemPath>${nacos.lib.path}/nacos-datasource-plugin-${nacos.version}.jar</systemPath>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.alibaba.nacos</groupId>
  156. <artifactId>default-auth-plugin</artifactId>
  157. <version>${nacos.version}</version>
  158. <scope>system</scope>
  159. <systemPath>${nacos.lib.path}/default-auth-plugin-${nacos.version}.jar</systemPath>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.alibaba.nacos</groupId>
  163. <artifactId>nacos-encryption-plugin</artifactId>
  164. <version>${nacos.version}</version>
  165. <scope>system</scope>
  166. <systemPath>${nacos.lib.path}/nacos-encryption-plugin-${nacos.version}.jar</systemPath>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.alibaba.nacos</groupId>
  170. <artifactId>nacos-trace-plugin</artifactId>
  171. <version>${nacos.version}</version>
  172. <scope>system</scope>
  173. <systemPath>${nacos.lib.path}/nacos-trace-plugin-${nacos.version}.jar</systemPath>
  174. </dependency>
  175. <dependency>
  176. <groupId>com.alibaba.nacos</groupId>
  177. <artifactId>nacos-common</artifactId>
  178. <version>${nacos.version}</version>
  179. <scope>system</scope>
  180. <systemPath>${nacos.lib.path}/nacos-common-${nacos.version}.jar</systemPath>
  181. </dependency>
  182. <dependency>
  183. <groupId>com.alibaba.nacos</groupId>
  184. <artifactId>nacos-client</artifactId>
  185. <version>${nacos.version}</version>
  186. <scope>system</scope>
  187. <systemPath>${nacos.lib.path}/nacos-client-${nacos.version}.jar</systemPath>
  188. </dependency>
  189. <!-- log -->
  190. <!-- log4j通过slf4j来代理 -->
  191. <dependency>
  192. <groupId>org.slf4j</groupId>
  193. <artifactId>log4j-over-slf4j</artifactId>
  194. </dependency>
  195. <!-- apache commons logging通过slf4j来代理 -->
  196. <dependency>
  197. <groupId>org.slf4j</groupId>
  198. <artifactId>jcl-over-slf4j</artifactId>
  199. </dependency>
  200. <!-- java.util.logging 通过slf4j来代理 -->
  201. <dependency>
  202. <groupId>org.slf4j</groupId>
  203. <artifactId>jul-to-slf4j</artifactId>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.springframework.boot</groupId>
  207. <artifactId>spring-boot-starter-security</artifactId>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.springframework.boot</groupId>
  211. <artifactId>spring-boot-test-autoconfigure</artifactId>
  212. <scope>test</scope>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.springframework</groupId>
  216. <artifactId>spring-test</artifactId>
  217. <scope>test</scope>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.hamcrest</groupId>
  221. <artifactId>hamcrest</artifactId>
  222. <scope>test</scope>
  223. </dependency>
  224. <!-- JDBC libs -->
  225. <dependency>
  226. <groupId>com.mysql</groupId>
  227. <artifactId>mysql-connector-j</artifactId>
  228. <version>${mysql-connector-java.version}</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.kingbase</groupId>
  232. <artifactId>kingbase8</artifactId>
  233. <version>${kingbase-connector-java.version}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.apache.derby</groupId>
  237. <artifactId>derby</artifactId>
  238. <version>${derby.version}</version>
  239. </dependency>
  240. <!-- SpringBoot Web容器 -->
  241. <dependency>
  242. <groupId>org.springframework.boot</groupId>
  243. <artifactId>spring-boot-starter-web</artifactId>
  244. <exclusions>
  245. <exclusion>
  246. <artifactId>spring-boot-starter-tomcat</artifactId>
  247. <groupId>org.springframework.boot</groupId>
  248. </exclusion>
  249. <exclusion>
  250. <artifactId>log4j-to-slf4j</artifactId>
  251. <groupId>org.apache.logging.log4j</groupId>
  252. </exclusion>
  253. </exclusions>
  254. </dependency>
  255. <!-- web 容器使用 undertow 性能更强 -->
  256. <dependency>
  257. <groupId>org.springframework.boot</groupId>
  258. <artifactId>spring-boot-starter-undertow</artifactId>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.springframework.boot</groupId>
  262. <artifactId>spring-boot-starter-jdbc</artifactId>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.springframework.boot</groupId>
  266. <artifactId>spring-boot-starter-aop</artifactId>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.springframework.ldap</groupId>
  270. <artifactId>spring-ldap-core</artifactId>
  271. </dependency>
  272. </dependencies>
  273. <build>
  274. <finalName>${project.artifactId}</finalName>
  275. <plugins>
  276. <plugin>
  277. <groupId>org.springframework.boot</groupId>
  278. <artifactId>spring-boot-maven-plugin</artifactId>
  279. <version>${spring-boot.version}</version>
  280. <executions>
  281. <execution>
  282. <goals>
  283. <goal>repackage</goal>
  284. </goals>
  285. </execution>
  286. </executions>
  287. <configuration>
  288. <!-- 作用:项目打成jar的同时将本地jar包也引入进去 -->
  289. <includeSystemScope>true</includeSystemScope>
  290. </configuration>
  291. </plugin>
  292. </plugins>
  293. </build>
  294. </project>