pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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-default-plugin-all</artifactId>
  61. <version>${nacos.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.alibaba.nacos</groupId>
  65. <artifactId>nacos-istio</artifactId>
  66. <version>${nacos.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.alibaba.nacos</groupId>
  70. <artifactId>nacos-prometheus</artifactId>
  71. <version>${nacos.version}</version>
  72. </dependency>
  73. <!-- log -->
  74. <!-- log4j通过slf4j来代理 -->
  75. <dependency>
  76. <groupId>org.slf4j</groupId>
  77. <artifactId>log4j-over-slf4j</artifactId>
  78. </dependency>
  79. <!-- apache commons logging通过slf4j来代理 -->
  80. <dependency>
  81. <groupId>org.slf4j</groupId>
  82. <artifactId>jcl-over-slf4j</artifactId>
  83. </dependency>
  84. <!-- java.util.logging 通过slf4j来代理 -->
  85. <dependency>
  86. <groupId>org.slf4j</groupId>
  87. <artifactId>jul-to-slf4j</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-security</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-test-autoconfigure</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework</groupId>
  100. <artifactId>spring-test</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.hamcrest</groupId>
  105. <artifactId>hamcrest</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. <!-- JDBC libs -->
  109. <dependency>
  110. <groupId>com.mysql</groupId>
  111. <artifactId>mysql-connector-j</artifactId>
  112. <version>${mysql-connector-java.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.kingbase</groupId>
  116. <artifactId>kingbase8</artifactId>
  117. <version>${kingbase-connector-java.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.apache.derby</groupId>
  121. <artifactId>derby</artifactId>
  122. <version>${derby.version}</version>
  123. </dependency>
  124. <!-- SpringBoot Web容器 -->
  125. <dependency>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-starter-web</artifactId>
  128. <exclusions>
  129. <exclusion>
  130. <artifactId>spring-boot-starter-tomcat</artifactId>
  131. <groupId>org.springframework.boot</groupId>
  132. </exclusion>
  133. <exclusion>
  134. <artifactId>log4j-to-slf4j</artifactId>
  135. <groupId>org.apache.logging.log4j</groupId>
  136. </exclusion>
  137. </exclusions>
  138. </dependency>
  139. <!-- web 容器使用 undertow 性能更强 -->
  140. <dependency>
  141. <groupId>org.springframework.boot</groupId>
  142. <artifactId>spring-boot-starter-undertow</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-jdbc</artifactId>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.springframework.boot</groupId>
  150. <artifactId>spring-boot-starter-aop</artifactId>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.springframework.ldap</groupId>
  154. <artifactId>spring-ldap-core</artifactId>
  155. </dependency>
  156. </dependencies>
  157. <build>
  158. <finalName>${project.artifactId}</finalName>
  159. <plugins>
  160. <plugin>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-maven-plugin</artifactId>
  163. <version>${spring-boot.version}</version>
  164. <executions>
  165. <execution>
  166. <goals>
  167. <goal>repackage</goal>
  168. </goals>
  169. </execution>
  170. </executions>
  171. <configuration>
  172. <!-- 作用:项目打成jar的同时将本地jar包也引入进去 -->
  173. <includeSystemScope>true</includeSystemScope>
  174. </configuration>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. </project>