pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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>user-center</artifactId>
  10. <description>用户中心</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>com.zlt</groupId>
  44. <artifactId>search-client</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>mysql</groupId>
  60. <artifactId>mysql-connector-java</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>io.micrometer</groupId>
  64. <artifactId>micrometer-registry-prometheus</artifactId>
  65. </dependency>
  66. </dependencies>
  67. <build>
  68. <plugins>
  69. <plugin>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-maven-plugin</artifactId>
  72. <executions>
  73. <execution>
  74. <goals>
  75. <goal>repackage</goal>
  76. </goals>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. <plugin>
  81. <groupId>com.spotify</groupId>
  82. <artifactId>docker-maven-plugin</artifactId>
  83. <configuration>
  84. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  85. <imageTags>
  86. <imageTag>${project.version}</imageTag>
  87. <imageTag>latest</imageTag>
  88. </imageTags>
  89. <forceTags>true</forceTags>
  90. <baseImage>${docker.baseImage}</baseImage>
  91. <volumes>${docker.volumes}</volumes>
  92. <env>
  93. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  94. </env>
  95. <entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
  96. <resources>
  97. <resource>
  98. <targetPath>/</targetPath>
  99. <directory>${project.build.directory}</directory>
  100. <include>${project.build.finalName}.jar</include>
  101. </resource>
  102. </resources>
  103. </configuration>
  104. </plugin>
  105. </plugins>
  106. <finalName>${project.artifactId}</finalName>
  107. </build>
  108. </project>