pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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>file-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-ribbon-spring-boot-starter</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.zlt</groupId>
  31. <artifactId>zlt-sentinel-spring-boot-starter</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</groupId>
  39. <artifactId>spring-context-support</artifactId>
  40. </dependency>
  41. <!-- swagger -->
  42. <dependency>
  43. <groupId>com.zlt</groupId>
  44. <artifactId>zlt-swagger2-spring-boot-starter</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-actuator</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>mysql</groupId>
  52. <artifactId>mysql-connector-java</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>io.micrometer</groupId>
  56. <artifactId>micrometer-registry-prometheus</artifactId>
  57. </dependency>
  58. <!-- 阿里云oss -->
  59. <dependency>
  60. <groupId>com.aliyun.oss</groupId>
  61. <artifactId>aliyun-sdk-oss</artifactId>
  62. </dependency>
  63. <!-- 七牛oss -->
  64. <dependency>
  65. <groupId>com.qiniu</groupId>
  66. <artifactId>qiniu-java-sdk</artifactId>
  67. </dependency>
  68. <!-- fastDFS -->
  69. <dependency>
  70. <groupId>com.github.tobato</groupId>
  71. <artifactId>fastdfs-client</artifactId>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-maven-plugin</artifactId>
  79. <executions>
  80. <execution>
  81. <goals>
  82. <goal>repackage</goal>
  83. </goals>
  84. </execution>
  85. </executions>
  86. </plugin>
  87. <plugin>
  88. <groupId>com.spotify</groupId>
  89. <artifactId>docker-maven-plugin</artifactId>
  90. <configuration>
  91. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  92. <imageTags>
  93. <imageTag>${project.version}</imageTag>
  94. <imageTag>latest</imageTag>
  95. </imageTags>
  96. <forceTags>true</forceTags>
  97. <baseImage>${docker.baseImage}</baseImage>
  98. <volumes>${docker.volumes}</volumes>
  99. <env>
  100. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  101. </env>
  102. <entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
  103. <resources>
  104. <resource>
  105. <targetPath>/</targetPath>
  106. <directory>${project.build.directory}</directory>
  107. <include>${project.build.finalName}.jar</include>
  108. </resource>
  109. </resources>
  110. </configuration>
  111. </plugin>
  112. </plugins>
  113. <finalName>${project.artifactId}</finalName>
  114. </build>
  115. </project>