pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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-monitor</artifactId>
  7. <version>2.7.0</version>
  8. </parent>
  9. <artifactId>log-center</artifactId>
  10. <dependencies>
  11. <!-- 公共实体类模块 -->
  12. <dependency>
  13. <groupId>com.zlt</groupId>
  14. <artifactId>zlt-config</artifactId>
  15. </dependency>
  16. <dependency>
  17. <groupId>com.zlt</groupId>
  18. <artifactId>zlt-common-spring-boot-starter</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>com.zlt</groupId>
  22. <artifactId>zlt-ribbon-spring-boot-starter</artifactId>
  23. </dependency>
  24. <!-- swagger -->
  25. <dependency>
  26. <groupId>com.zlt</groupId>
  27. <artifactId>zlt-swagger2-spring-boot-starter</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.zlt</groupId>
  31. <artifactId>search-client</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-actuator</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>io.micrometer</groupId>
  43. <artifactId>micrometer-registry-prometheus</artifactId>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <plugins>
  48. <plugin>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-maven-plugin</artifactId>
  51. <executions>
  52. <execution>
  53. <goals>
  54. <goal>repackage</goal>
  55. </goals>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <groupId>com.spotify</groupId>
  61. <artifactId>docker-maven-plugin</artifactId>
  62. <configuration>
  63. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  64. <imageTags>
  65. <imageTag>${project.version}</imageTag>
  66. <imageTag>latest</imageTag>
  67. </imageTags>
  68. <forceTags>true</forceTags>
  69. <baseImage>${docker.baseImage}</baseImage>
  70. <volumes>${docker.volumes}</volumes>
  71. <env>
  72. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  73. </env>
  74. <entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
  75. <resources>
  76. <resource>
  77. <targetPath>/</targetPath>
  78. <directory>${project.build.directory}</directory>
  79. <include>${project.build.finalName}.jar</include>
  80. </resource>
  81. </resources>
  82. </configuration>
  83. </plugin>
  84. </plugins>
  85. <finalName>${project.artifactId}</finalName>
  86. </build>
  87. </project>