pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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>central-platform</artifactId>
  7. <version>2.7.0</version>
  8. </parent>
  9. <artifactId>zlt-uaa</artifactId>
  10. <description>认证中心</description>
  11. <dependencies>
  12. <dependency>
  13. <groupId>com.zlt</groupId>
  14. <artifactId>zlt-config</artifactId>
  15. </dependency>
  16. <dependency>
  17. <groupId>com.zlt</groupId>
  18. <artifactId>zlt-auth-client-spring-boot-starter</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>com.zlt</groupId>
  22. <artifactId>zlt-db-spring-boot-starter</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.zlt</groupId>
  26. <artifactId>zlt-ribbon-spring-boot-starter</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.zlt</groupId>
  30. <artifactId>zlt-swagger2-spring-boot-starter</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.zlt</groupId>
  34. <artifactId>zlt-sentinel-spring-boot-starter</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.alibaba.cloud</groupId>
  38. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.social</groupId>
  42. <artifactId>spring-social-security</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-web</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>commons-io</groupId>
  50. <artifactId>commons-io</artifactId>
  51. </dependency>
  52. <!-- 验证码生成工具 -->
  53. <dependency>
  54. <groupId>com.github.whvcse</groupId>
  55. <artifactId>easy-captcha</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-actuator</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.session</groupId>
  63. <artifactId>spring-session-data-redis</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>mysql</groupId>
  67. <artifactId>mysql-connector-java</artifactId>
  68. </dependency>
  69. <!-- hutool java工具类库 -->
  70. <dependency>
  71. <groupId>cn.hutool</groupId>
  72. <artifactId>hutool-all</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>io.micrometer</groupId>
  76. <artifactId>micrometer-registry-prometheus</artifactId>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <executions>
  85. <execution>
  86. <goals>
  87. <goal>repackage</goal>
  88. </goals>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. <plugin>
  93. <groupId>com.spotify</groupId>
  94. <artifactId>docker-maven-plugin</artifactId>
  95. <configuration>
  96. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  97. <imageTags>
  98. <imageTag>${project.version}</imageTag>
  99. <imageTag>latest</imageTag>
  100. </imageTags>
  101. <forceTags>true</forceTags>
  102. <baseImage>${docker.baseImage}</baseImage>
  103. <volumes>${docker.volumes}</volumes>
  104. <env>
  105. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  106. </env>
  107. <entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
  108. <resources>
  109. <resource>
  110. <targetPath>/</targetPath>
  111. <directory>${project.build.directory}</directory>
  112. <include>${project.build.finalName}.jar</include>
  113. </resource>
  114. </resources>
  115. </configuration>
  116. </plugin>
  117. </plugins>
  118. <finalName>${project.artifactId}</finalName>
  119. </build>
  120. </project>