pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.zlt</groupId>
  6. <artifactId>zlt-business</artifactId>
  7. <version>2.7.0</version>
  8. </parent>
  9. <artifactId>csb-center</artifactId>
  10. <description>CSB服务中心</description>
  11. <dependencies>
  12. <!-- 公共实体类模块 -->
  13. <dependency>
  14. <groupId>com.zlt</groupId>
  15. <artifactId>zlt-config</artifactId>
  16. </dependency>
  17. <dependency>
  18. <groupId>com.zlt</groupId>
  19. <artifactId>zlt-common-spring-boot-starter</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.zlt</groupId>
  23. <artifactId>zlt-db-spring-boot-starter</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.zlt</groupId>
  27. <artifactId>zlt-redis-spring-boot-starter</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.zlt</groupId>
  31. <artifactId>zlt-ribbon-spring-boot-starter</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.zlt</groupId>
  35. <artifactId>zlt-sentinel-spring-boot-starter</artifactId>
  36. </dependency>
  37. <!-- swagger -->
  38. <dependency>
  39. <groupId>com.zlt</groupId>
  40. <artifactId>zlt-swagger2-spring-boot-starter</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.alibaba.cloud</groupId>
  48. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework</groupId>
  52. <artifactId>spring-context-support</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-actuator</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.micrometer</groupId>
  60. <artifactId>micrometer-registry-prometheus</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework</groupId>
  64. <artifactId>spring-web</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework</groupId>
  68. <artifactId>spring-context</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>javax.servlet</groupId>
  72. <artifactId>javax.servlet-api</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.cloud</groupId>
  76. <artifactId>spring-cloud-commons</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-tx</artifactId>
  81. </dependency>
  82. <!-- google json工具 -->
  83. <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
  84. <dependency>
  85. <groupId>com.google.code.gson</groupId>
  86. <artifactId>gson</artifactId>
  87. </dependency>
  88. <!-- 阿里云总线CSB依赖 -->
  89. <dependency>
  90. <groupId>com.alibaba.csb.sdk</groupId>
  91. <artifactId>http-client</artifactId>
  92. <version>1.1.5.9</version>
  93. </dependency>
  94. <!-- 2022年19点22分 排除漏洞 -->
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-security</artifactId>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <plugins>
  102. <plugin>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-maven-plugin</artifactId>
  105. <executions>
  106. <execution>
  107. <goals>
  108. <goal>repackage</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. <plugin>
  114. <groupId>com.spotify</groupId>
  115. <artifactId>docker-maven-plugin</artifactId>
  116. <configuration>
  117. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  118. <imageTags>
  119. <imageTag>${project.version}</imageTag>
  120. <imageTag>latest</imageTag>
  121. </imageTags>
  122. <forceTags>true</forceTags>
  123. <baseImage>${docker.baseImage}</baseImage>
  124. <volumes>${docker.volumes}</volumes>
  125. <env>
  126. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  127. </env>
  128. <entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
  129. <resources>
  130. <resource>
  131. <targetPath>/</targetPath>
  132. <directory>${project.build.directory}</directory>
  133. <include>${project.build.finalName}.jar</include>
  134. </resource>
  135. </resources>
  136. </configuration>
  137. </plugin>
  138. </plugins>
  139. <finalName>${project.artifactId}</finalName>
  140. </build>
  141. </project>