seninel部署
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

185 line
7.1KB

  1. <?xml version="1.0"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <parent>
  6. <artifactId>sentinel-demo</artifactId>
  7. <groupId>com.alibaba.csp</groupId>
  8. <version>1.8.2-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sentinel-demo-quarkus</artifactId>
  12. <properties>
  13. <compiler-plugin.version>3.8.1</compiler-plugin.version>
  14. <maven.compiler.parameters>true</maven.compiler.parameters>
  15. <maven.compiler.source>1.8</maven.compiler.source>
  16. <maven.compiler.target>1.8</maven.compiler.target>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <quarkus-plugin.version>1.4.1.Final</quarkus-plugin.version>
  20. <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id>
  21. <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
  22. <quarkus.platform.version>1.4.1.Final</quarkus.platform.version>
  23. <surefire-plugin.version>2.22.1</surefire-plugin.version>
  24. </properties>
  25. <dependencyManagement>
  26. <dependencies>
  27. <dependency>
  28. <groupId>${quarkus.platform.group-id}</groupId>
  29. <artifactId>${quarkus.platform.artifact-id}</artifactId>
  30. <version>${quarkus.platform.version}</version>
  31. <type>pom</type>
  32. <scope>import</scope>
  33. </dependency>
  34. </dependencies>
  35. </dependencyManagement>
  36. <dependencies>
  37. <dependency>
  38. <groupId>io.quarkus</groupId>
  39. <artifactId>quarkus-resteasy</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>io.quarkus</groupId>
  43. <artifactId>quarkus-jackson</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.alibaba.csp</groupId>
  47. <artifactId>sentinel-core</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.alibaba.csp</groupId>
  51. <artifactId>sentinel-logging-slf4j</artifactId>
  52. <version>${project.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.alibaba.csp</groupId>
  56. <artifactId>sentinel-transport-simple-http</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.alibaba.csp</groupId>
  60. <artifactId>sentinel-parameter-flow-control</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.alibaba.csp</groupId>
  64. <artifactId>sentinel-jax-rs-quarkus-adapter</artifactId>
  65. <version>${project.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.alibaba.csp</groupId>
  69. <artifactId>sentinel-annotation-quarkus-adapter</artifactId>
  70. <version>${project.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.alibaba.csp</groupId>
  74. <artifactId>sentinel-native-image-quarkus-adapter</artifactId>
  75. <version>${project.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.quarkus</groupId>
  79. <artifactId>quarkus-junit5</artifactId>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.rest-assured</groupId>
  84. <artifactId>rest-assured</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. </dependencies>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>io.quarkus</groupId>
  92. <artifactId>quarkus-maven-plugin</artifactId>
  93. <version>${quarkus-plugin.version}</version>
  94. <executions>
  95. <execution>
  96. <goals>
  97. <goal>build</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. <plugin>
  103. <artifactId>maven-compiler-plugin</artifactId>
  104. <version>${compiler-plugin.version}</version>
  105. </plugin>
  106. <plugin>
  107. <artifactId>maven-surefire-plugin</artifactId>
  108. <version>${surefire-plugin.version}</version>
  109. <configuration>
  110. <systemProperties>
  111. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  112. </systemProperties>
  113. </configuration>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.jboss.jandex</groupId>
  117. <artifactId>jandex-maven-plugin</artifactId>
  118. <version>1.0.7</version>
  119. <executions>
  120. <execution>
  121. <id>make-index</id>
  122. <goals>
  123. <goal>jandex</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. </plugins>
  129. </build>
  130. <profiles>
  131. <profile>
  132. <id>native</id>
  133. <activation>
  134. <property>
  135. <name>native</name>
  136. </property>
  137. </activation>
  138. <build>
  139. <plugins>
  140. <plugin>
  141. <artifactId>maven-failsafe-plugin</artifactId>
  142. <version>${surefire-plugin.version}</version>
  143. <executions>
  144. <execution>
  145. <goals>
  146. <goal>integration-test</goal>
  147. <goal>verify</goal>
  148. </goals>
  149. <configuration>
  150. <systemProperties>
  151. <native.image.path>
  152. ${project.build.directory}/${project.build.finalName}-runner
  153. </native.image.path>
  154. </systemProperties>
  155. </configuration>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. </plugins>
  160. </build>
  161. <properties>
  162. <quarkus.package.type>native</quarkus.package.type>
  163. <quarkus.native.auto-service-loader-registration>true</quarkus.native.auto-service-loader-registration>
  164. <quarkus.native.additional-build-args>-J-Dcsp.sentinel.log.dir=/tmp,-J-Dcsp.sentinel.api.port=8722,-J-Dcsp.sentinel.heartbeat.client.ip=127.0.0.1,-J-Dcsp.sentinel.dashboard.server=127.0.0.1:8080,-J-Dproject.name=sentinel-demo-quarkus,-H:+TraceClassInitialization,--report-unsupported-elements-at-runtime,--allow-incomplete-classpath</quarkus.native.additional-build-args>
  165. </properties>
  166. </profile>
  167. </profiles>
  168. </project>