pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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>code-generator</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-common-spring-boot-starter</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.zlt</groupId>
  21. <artifactId>zlt-db-spring-boot-starter</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.zlt</groupId>
  25. <artifactId>zlt-swagger2-spring-boot-starter</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.alibaba.cloud</groupId>
  29. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</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-actuator</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>commons-io</groupId>
  41. <artifactId>commons-io</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>mysql</groupId>
  45. <artifactId>mysql-connector-java</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.velocity</groupId>
  49. <artifactId>velocity</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>commons-configuration</groupId>
  53. <artifactId>commons-configuration</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>io.micrometer</groupId>
  57. <artifactId>micrometer-registry-prometheus</artifactId>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <plugins>
  62. <plugin>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-maven-plugin</artifactId>
  65. <executions>
  66. <execution>
  67. <goals>
  68. <goal>repackage</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <plugin>
  74. <groupId>com.spotify</groupId>
  75. <artifactId>docker-maven-plugin</artifactId>
  76. <configuration>
  77. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  78. <imageTags>
  79. <imageTag>${project.version}</imageTag>
  80. <imageTag>latest</imageTag>
  81. </imageTags>
  82. <forceTags>true</forceTags>
  83. <baseImage>${docker.baseImage}</baseImage>
  84. <volumes>${docker.volumes}</volumes>
  85. <env>
  86. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  87. </env>
  88. <entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
  89. <resources>
  90. <resource>
  91. <targetPath>/</targetPath>
  92. <directory>${project.build.directory}</directory>
  93. <include>${project.build.finalName}.jar</include>
  94. </resource>
  95. </resources>
  96. </configuration>
  97. </plugin>
  98. </plugins>
  99. <finalName>${project.artifactId}</finalName>
  100. </build>
  101. </project>