pom.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.hosea.cloud.template</groupId>
  7. <artifactId>gateway</artifactId>
  8. <version>1.0.0</version>
  9. <name>Gateway Template ${version}</name>
  10. <description>网关模板</description>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <hosea-cloud.version>1.0.1</hosea-cloud.version>
  14. <service-user-client.version>1.0.0</service-user-client.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.hosea.cloud</groupId>
  19. <artifactId>cloud-gateway-maxkey</artifactId>
  20. </dependency>
  21. <!--region Admin客户端,不兼容JMX-->
  22. <dependency>
  23. <groupId>com.hosea.cloud</groupId>
  24. <artifactId>cloud-admin-client</artifactId>
  25. <exclusions>
  26. <exclusion>
  27. <groupId>org.jolokia</groupId>
  28. <artifactId>jolokia-support-spring</artifactId>
  29. </exclusion>
  30. </exclusions>
  31. </dependency>
  32. <!--endregion-->
  33. <!--region 用户服务-->
  34. <dependency>
  35. <groupId>com.hosea.cloud.user</groupId>
  36. <artifactId>service-user-client</artifactId>
  37. <version>${service-user-client.version}</version>
  38. <exclusions>
  39. <exclusion>
  40. <groupId>com.hosea.cloud</groupId>
  41. <artifactId>cloud-webmvc</artifactId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. <!--endregion-->
  46. </dependencies>
  47. <dependencyManagement>
  48. <dependencies>
  49. <!--region 微服务脚手架-->
  50. <dependency>
  51. <groupId>com.hosea.cloud</groupId>
  52. <artifactId>hosea-cloud</artifactId>
  53. <version>${hosea-cloud.version}</version>
  54. <type>pom</type>
  55. <scope>import</scope>
  56. </dependency>
  57. <!--endregion-->
  58. </dependencies>
  59. </dependencyManagement>
  60. <build>
  61. <plugins>
  62. <!--region JDK版本-->
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-compiler-plugin</artifactId>
  66. <configuration>
  67. <source>17</source>
  68. <target>17</target>
  69. <encoding>${project.build.sourceEncoding}</encoding>
  70. </configuration>
  71. </plugin>
  72. <!--endregion-->
  73. <!--region Spring Boot 执行包-->
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <executions>
  78. <execution>
  79. <goals>
  80. <goal>repackage</goal>
  81. </goals>
  82. </execution>
  83. </executions>
  84. </plugin>
  85. <!--endregion-->
  86. </plugins>
  87. </build>
  88. </project>