pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.3.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.ff</groupId>
  12. <artifactId>apimngr</artifactId>
  13. <version>1.0.35</version>
  14. <name>apimngr</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <docker.plugin.version>0.40.3</docker.plugin.version>
  19. <docker.registry>docker.platomix.net:10000</docker.registry>
  20. <docker.namespace>platomix</docker.namespace>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.mybatis.spring.boot</groupId>
  29. <artifactId>mybatis-spring-boot-starter</artifactId>
  30. <version>2.0.0</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-data-redis</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.alibaba</groupId>
  38. <artifactId>druid</artifactId>
  39. <version>RELEASE</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>mysql</groupId>
  43. <artifactId>mysql-connector-java</artifactId>
  44. <scope>runtime</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.projectlombok</groupId>
  48. <artifactId>lombok</artifactId>
  49. <optional>true</optional>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.alibaba</groupId>
  58. <artifactId>fastjson</artifactId>
  59. <version>1.2.58</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>io.jsonwebtoken</groupId>
  63. <artifactId>jjwt</artifactId>
  64. <version>0.9.1</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>io.springfox</groupId>
  68. <artifactId>springfox-swagger2</artifactId>
  69. <version>2.7.0</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.springfox</groupId>
  73. <artifactId>springfox-swagger-ui</artifactId>
  74. <version>2.7.0</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>commons-io</groupId>
  78. <artifactId>commons-io</artifactId>
  79. <version>2.5</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.google.code.gson</groupId>
  83. <artifactId>gson</artifactId>
  84. <version>2.8.2</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>commons-lang</groupId>
  88. <artifactId>commons-lang</artifactId>
  89. <version>2.6</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.httpcomponents</groupId>
  93. <artifactId>httpclient</artifactId>
  94. <version>4.5.3</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-data-redis</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.commons</groupId>
  102. <artifactId>commons-pool2</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.httpcomponents</groupId>
  106. <artifactId>httpmime</artifactId>
  107. <version>4.5.3</version>
  108. </dependency>
  109. <!--验证码 -->
  110. <dependency>
  111. <groupId>com.github.penggle</groupId>
  112. <artifactId>kaptcha</artifactId>
  113. <version>2.3.2</version>
  114. </dependency>
  115. </dependencies>
  116. <build>
  117. <finalName>platomix-api-gateway</finalName>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-maven-plugin</artifactId>
  122. </plugin>
  123. <!-- -->
  124. <plugin>
  125. <groupId>io.fabric8</groupId>
  126. <artifactId>docker-maven-plugin</artifactId>
  127. <version>${docker.plugin.version}</version>
  128. <configuration>
  129. <verbose>true</verbose>
  130. <images>
  131. <image>
  132. <name>${docker.registry}/${docker.namespace}/${project.build.finalName}</name>
  133. <build>
  134. <tags>
  135. <tag>latest</tag>
  136. <tag>${project.version}</tag>
  137. </tags>
  138. <contextDir>${project.basedir}</contextDir>
  139. <args>
  140. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  141. </args>
  142. </build>
  143. </image>
  144. </images>
  145. </configuration>
  146. <executions>
  147. <execution>
  148. <id>build-push</id>
  149. <phase>package</phase>
  150. <goals>
  151. <goal>build</goal>
  152. <goal>push</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. </project>