pom.xml 2.7 KB

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