pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, lengleng All rights reserved.
  5. ~
  6. ~ Redistribution and use in source and binary forms, with or without
  7. ~ modification, are permitted provided that the following conditions are met:
  8. ~
  9. ~ Redistributions of source code must retain the above copyright notice,
  10. ~ this list of conditions and the following disclaimer.
  11. ~ Redistributions in binary form must reproduce the above copyright
  12. ~ notice, this list of conditions and the following disclaimer in the
  13. ~ documentation and/or other materials provided with the distribution.
  14. ~ Neither the name of the pig4cloud.com developer nor the names of its
  15. ~ contributors may be used to endorse or promote products derived from
  16. ~ this software without specific prior written permission.
  17. ~ Author: lengleng (wangiegie@gmail.com)
  18. ~
  19. -->
  20. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <parent>
  24. <groupId>com.pig4cloud</groupId>
  25. <artifactId>pigx</artifactId>
  26. <version>${pigx.version}</version>
  27. </parent>
  28. <artifactId>pigx-gateway</artifactId>
  29. <version>${pigx.version}</version>
  30. <packaging>jar</packaging>
  31. <name>pigx-gateway</name>
  32. <description>pigx 服务网关,基于 spring cloud gateway</description>
  33. <dependencies>
  34. <!--gateway 网关依赖,内置webflux 依赖-->
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-starter-gateway</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  42. </dependency>
  43. <!--配置中心客户端-->
  44. <dependency>
  45. <groupId>org.springframework.cloud</groupId>
  46. <artifactId>spring-cloud-starter-config</artifactId>
  47. </dependency>
  48. <!--验证码-->
  49. <dependency>
  50. <groupId>com.github.axet</groupId>
  51. <artifactId>kaptcha</artifactId>
  52. <version>${kaptcha.version}</version>
  53. </dependency>
  54. <!--hutool-->
  55. <dependency>
  56. <groupId>com.pig4cloud</groupId>
  57. <artifactId>pigx-common-core</artifactId>
  58. <version>${pigx.version}</version>
  59. </dependency>
  60. <!--接口文档-->
  61. <dependency>
  62. <groupId>io.springfox</groupId>
  63. <artifactId>springfox-swagger-ui</artifactId>
  64. <version>${swagger.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>io.springfox</groupId>
  68. <artifactId>springfox-swagger2</artifactId>
  69. <version>${swagger.version}</version>
  70. </dependency>
  71. </dependencies>
  72. <build>
  73. <plugins>
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <configuration>
  78. <finalName>${project.name}</finalName>
  79. </configuration>
  80. </plugin>
  81. <plugin>
  82. <groupId>com.spotify</groupId>
  83. <artifactId>docker-maven-plugin</artifactId>
  84. <version>0.4.12</version>
  85. <configuration>
  86. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  87. <dockerHost>${docker.url}</dockerHost>
  88. <dockerDirectory>${project.basedir}</dockerDirectory>
  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. <serverId>docker-hub</serverId>
  97. <registryUrl>https://index.docker.io/v1/</registryUrl>
  98. </configuration>
  99. </plugin>
  100. </plugins>
  101. </build>
  102. </project>