seninel部署
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

156 líneas
5.9KB

  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. <parent>
  6. <artifactId>sentinel-cluster</artifactId>
  7. <groupId>com.alibaba.csp</groupId>
  8. <version>1.7.2-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sentinel-cluster-server-envoy-rls</artifactId>
  12. <properties>
  13. <java.source.version>1.8</java.source.version>
  14. <java.target.version>1.8</java.target.version>
  15. <protobuf.version>3.10.0</protobuf.version>
  16. <grpc.version>1.24.0</grpc.version>
  17. <maven.shade.version>3.2.1</maven.shade.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.alibaba.csp</groupId>
  22. <artifactId>sentinel-cluster-server-default</artifactId>
  23. <version>${project.version}</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.alibaba.csp</groupId>
  27. <artifactId>sentinel-datasource-extension</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.alibaba.csp</groupId>
  31. <artifactId>sentinel-transport-simple-http</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>io.grpc</groupId>
  35. <artifactId>grpc-netty</artifactId>
  36. <version>${grpc.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>io.grpc</groupId>
  40. <artifactId>grpc-protobuf</artifactId>
  41. <version>${grpc.version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.grpc</groupId>
  45. <artifactId>grpc-stub</artifactId>
  46. <version>${grpc.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.google.protobuf</groupId>
  50. <artifactId>protobuf-java</artifactId>
  51. <version>${protobuf.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.yaml</groupId>
  55. <artifactId>snakeyaml</artifactId>
  56. <version>1.25</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>junit</groupId>
  60. <artifactId>junit</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.mockito</groupId>
  65. <artifactId>mockito-core</artifactId>
  66. <scope>test</scope>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <extensions>
  71. <extension>
  72. <groupId>kr.motd.maven</groupId>
  73. <artifactId>os-maven-plugin</artifactId>
  74. <version>1.6.2</version>
  75. </extension>
  76. </extensions>
  77. <plugins>
  78. <plugin>
  79. <groupId>org.xolstice.maven.plugins</groupId>
  80. <artifactId>protobuf-maven-plugin</artifactId>
  81. <version>0.6.1</version>
  82. <configuration>
  83. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  84. </protocArtifact>
  85. <pluginId>grpc-java</pluginId>
  86. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  87. </pluginArtifact>
  88. </configuration>
  89. <executions>
  90. <execution>
  91. <goals>
  92. <goal>compile</goal>
  93. <goal>compile-custom</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-pmd-plugin</artifactId>
  101. <version>${maven.pmd.version}</version>
  102. <configuration>
  103. <excludeRoots>
  104. <excludeRoot>target/generated-sources</excludeRoot>
  105. </excludeRoots>
  106. </configuration>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. <profiles>
  111. <profile>
  112. <id>prod</id>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-shade-plugin</artifactId>
  118. <version>${maven.shade.version}</version>
  119. <executions>
  120. <execution>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>shade</goal>
  124. </goals>
  125. <configuration>
  126. <finalName>sentinel-envoy-rls-token-server</finalName>
  127. <transformers>
  128. <transformer
  129. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  130. <mainClass>
  131. com.alibaba.csp.sentinel.cluster.server.envoy.rls.SentinelEnvoyRlsServer
  132. </mainClass>
  133. </transformer>
  134. <transformer
  135. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  136. </transformers>
  137. </configuration>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. </plugins>
  142. </build>
  143. </profile>
  144. </profiles>
  145. </project>