seninel部署
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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