seninel部署
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

162 行
6.1KB

  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.8.1-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.30.2</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>javax.annotation</groupId>
  35. <artifactId>javax.annotation-api</artifactId>
  36. <version>${javax.annotation-api.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>io.grpc</groupId>
  40. <artifactId>grpc-netty</artifactId>
  41. <version>${grpc.version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.grpc</groupId>
  45. <artifactId>grpc-protobuf</artifactId>
  46. <version>${grpc.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>io.grpc</groupId>
  50. <artifactId>grpc-stub</artifactId>
  51. <version>${grpc.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.google.protobuf</groupId>
  55. <artifactId>protobuf-java</artifactId>
  56. <version>${protobuf.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.yaml</groupId>
  60. <artifactId>snakeyaml</artifactId>
  61. <version>1.25</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>junit</groupId>
  65. <artifactId>junit</artifactId>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.mockito</groupId>
  70. <artifactId>mockito-core</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <extensions>
  76. <extension>
  77. <groupId>kr.motd.maven</groupId>
  78. <artifactId>os-maven-plugin</artifactId>
  79. <version>1.6.2</version>
  80. </extension>
  81. </extensions>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.xolstice.maven.plugins</groupId>
  85. <artifactId>protobuf-maven-plugin</artifactId>
  86. <version>0.6.1</version>
  87. <configuration>
  88. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  89. </protocArtifact>
  90. <pluginId>grpc-java</pluginId>
  91. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  92. </pluginArtifact>
  93. </configuration>
  94. <executions>
  95. <execution>
  96. <goals>
  97. <goal>compile</goal>
  98. <goal>compile-custom</goal>
  99. </goals>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-pmd-plugin</artifactId>
  106. <version>${maven.pmd.version}</version>
  107. <configuration>
  108. <excludeRoots>
  109. <excludeRoot>target/generated-sources</excludeRoot>
  110. </excludeRoots>
  111. </configuration>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. <profiles>
  116. <profile>
  117. <id>prod</id>
  118. <build>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-shade-plugin</artifactId>
  123. <version>${maven.shade.version}</version>
  124. <executions>
  125. <execution>
  126. <phase>package</phase>
  127. <goals>
  128. <goal>shade</goal>
  129. </goals>
  130. <configuration>
  131. <finalName>sentinel-envoy-rls-token-server</finalName>
  132. <transformers>
  133. <transformer
  134. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  135. <mainClass>
  136. com.alibaba.csp.sentinel.cluster.server.envoy.rls.SentinelEnvoyRlsServer
  137. </mainClass>
  138. </transformer>
  139. <transformer
  140. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  141. </transformers>
  142. </configuration>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. </plugins>
  147. </build>
  148. </profile>
  149. </profiles>
  150. </project>