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.

357 líneas
15KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.alibaba.csp</groupId>
  6. <artifactId>sentinel-parent</artifactId>
  7. <version>1.5.1-SNAPSHOT</version>
  8. <packaging>pom</packaging>
  9. <name>${project.artifactId}</name>
  10. <description>The parent project of Sentinel</description>
  11. <url>https://github.com/alibaba/Sentinel</url>
  12. <licenses>
  13. <license>
  14. <name>Apache License, Version 2.0</name>
  15. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  16. <distribution>repo</distribution>
  17. </license>
  18. </licenses>
  19. <scm>
  20. <url>https://github.com/alibaba/Sentinel</url>
  21. <connection>scm:git:https://github.com/alibaba/Sentinel.git</connection>
  22. <developerConnection>scm:git:https://github.com/alibaba/Sentinel.git</developerConnection>
  23. </scm>
  24. <developers>
  25. <developer>
  26. <name>The Sentinel Project Contributors</name>
  27. <email>sentinel-dev@linux.alibaba.com</email>
  28. <url>https://github.com/alibaba/Sentinel</url>
  29. </developer>
  30. </developers>
  31. <organization>
  32. <name>Alibaba Group</name>
  33. <url>https://github.com/alibaba</url>
  34. </organization>
  35. <issueManagement>
  36. <system>github</system>
  37. <url>https://github.com/alibaba/Sentinel/issues</url>
  38. </issueManagement>
  39. <properties>
  40. <!-- Compile libs -->
  41. <fastjson.version>1.2.56</fastjson.version>
  42. <!-- Test libs -->
  43. <junit.version>4.12</junit.version>
  44. <mockito.version>2.21.0</mockito.version>
  45. <awaitility.version>3.1.5</awaitility.version>
  46. <powermock.version>2.0.0</powermock.version>
  47. <!-- Build -->
  48. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  49. <java.source.version>1.7</java.source.version>
  50. <java.target.version>1.7</java.target.version>
  51. <java.encoding>UTF-8</java.encoding>
  52. <maven.compiler.version>3.8.0</maven.compiler.version>
  53. <maven.surefire.version>2.22.1</maven.surefire.version>
  54. <maven.source.version>3.0.1</maven.source.version>
  55. <maven.javadoc.version>3.0.1</maven.javadoc.version>
  56. <maven.deploy.version>2.8.2</maven.deploy.version>
  57. <maven.gpg.version>1.6</maven.gpg.version>
  58. <maven.jacoco.version>0.8.3</maven.jacoco.version>
  59. <maven.jar.version>3.1.0</maven.jar.version>
  60. <maven.pmd.version>3.8</maven.pmd.version>
  61. </properties>
  62. <modules>
  63. <module>sentinel-core</module>
  64. <module>sentinel-extension</module>
  65. <module>sentinel-transport</module>
  66. <module>sentinel-adapter</module>
  67. <module>sentinel-dashboard</module>
  68. <module>sentinel-demo</module>
  69. <module>sentinel-benchmark</module>
  70. <module>sentinel-cluster</module>
  71. </modules>
  72. <dependencyManagement>
  73. <dependencies>
  74. <dependency>
  75. <groupId>com.alibaba.csp</groupId>
  76. <artifactId>sentinel-core</artifactId>
  77. <version>${project.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.alibaba.csp</groupId>
  81. <artifactId>sentinel-extension</artifactId>
  82. <version>${project.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.alibaba.csp</groupId>
  86. <artifactId>sentinel-annotation-aspectj</artifactId>
  87. <version>${project.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.alibaba.csp</groupId>
  91. <artifactId>sentinel-parameter-flow-control</artifactId>
  92. <version>${project.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.alibaba.csp</groupId>
  96. <artifactId>sentinel-datasource-extension</artifactId>
  97. <version>${project.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.alibaba.csp</groupId>
  101. <artifactId>sentinel-datasource-nacos</artifactId>
  102. <version>${project.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.alibaba.csp</groupId>
  106. <artifactId>sentinel-datasource-zookeeper</artifactId>
  107. <version>${project.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.alibaba.csp</groupId>
  111. <artifactId>sentinel-datasource-apollo</artifactId>
  112. <version>${project.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.alibaba.csp</groupId>
  116. <artifactId>sentinel-transport-simple-http</artifactId>
  117. <version>${project.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.alibaba.csp</groupId>
  121. <artifactId>sentinel-transport-common</artifactId>
  122. <version>${project.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.alibaba.csp</groupId>
  126. <artifactId>sentinel-cluster-common-default</artifactId>
  127. <version>${project.version}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.alibaba.csp</groupId>
  131. <artifactId>sentinel-adapter</artifactId>
  132. <version>${project.version}</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.alibaba</groupId>
  136. <artifactId>fastjson</artifactId>
  137. <version>${fastjson.version}</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>junit</groupId>
  141. <artifactId>junit</artifactId>
  142. <version>${junit.version}</version>
  143. <scope>test</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.mockito</groupId>
  147. <artifactId>mockito-core</artifactId>
  148. <version>${mockito.version}</version>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.awaitility</groupId>
  153. <artifactId>awaitility</artifactId>
  154. <version>${awaitility.version}</version>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.hamcrest</groupId>
  159. <artifactId>java-hamcrest</artifactId>
  160. <version>2.0.0.0</version>
  161. <scope>test</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.powermock</groupId>
  165. <artifactId>powermock-module-junit4</artifactId>
  166. <version>${powermock.version}</version>
  167. <scope>test</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.powermock</groupId>
  171. <artifactId>powermock-api-mockito2</artifactId>
  172. <version>${powermock.version}</version>
  173. <scope>test</scope>
  174. </dependency>
  175. </dependencies>
  176. </dependencyManagement>
  177. <build>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-pmd-plugin</artifactId>
  182. <version>${maven.pmd.version}</version>
  183. <configuration>
  184. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  185. <minimumPriority>1</minimumPriority>
  186. <excludeRoots>
  187. <excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
  188. </excludeRoots>
  189. <excludes>
  190. <exclude>**/*_jmhTest.java</exclude>
  191. </excludes>
  192. <printFailingErrors>true</printFailingErrors>
  193. <rulesets>
  194. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  195. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  196. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  197. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  198. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  199. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  200. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  201. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  202. <ruleset>rulesets/java/ali-other.xml</ruleset>
  203. <ruleset>rulesets/java/ali-set.xml</ruleset>
  204. </rulesets>
  205. </configuration>
  206. <executions>
  207. <execution>
  208. <phase>verify</phase>
  209. <goals>
  210. <goal>check</goal>
  211. </goals>
  212. </execution>
  213. </executions>
  214. <dependencies>
  215. <dependency>
  216. <groupId>com.alibaba.p3c</groupId>
  217. <artifactId>p3c-pmd</artifactId>
  218. <version>1.3.6</version>
  219. </dependency>
  220. </dependencies>
  221. </plugin>
  222. <plugin>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-compiler-plugin</artifactId>
  225. <version>${maven.compiler.version}</version>
  226. <configuration>
  227. <source>${java.source.version}</source>
  228. <target>${java.target.version}</target>
  229. <encoding>${java.encoding}</encoding>
  230. </configuration>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-surefire-plugin</artifactId>
  235. <configuration>
  236. <!-- CircleCI build workaround -->
  237. <argLine>@{argLine} -Xms1024m -Xmx2048m</argLine>
  238. <useSystemClassLoader>false</useSystemClassLoader>
  239. </configuration>
  240. </plugin>
  241. <plugin>
  242. <groupId>org.jacoco</groupId>
  243. <artifactId>jacoco-maven-plugin</artifactId>
  244. <version>${maven.jacoco.version}</version>
  245. <executions>
  246. <execution>
  247. <goals>
  248. <goal>prepare-agent</goal>
  249. </goals>
  250. </execution>
  251. <execution>
  252. <id>report</id>
  253. <phase>test</phase>
  254. <goals>
  255. <goal>report</goal>
  256. </goals>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. </plugins>
  261. <pluginManagement>
  262. <plugins>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-surefire-plugin</artifactId>
  266. <version>${maven.surefire.version}</version>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-jar-plugin</artifactId>
  271. <version>${maven.jar.version}</version>
  272. </plugin>
  273. </plugins>
  274. </pluginManagement>
  275. </build>
  276. <profiles>
  277. <profile>
  278. <id>oss</id>
  279. <build>
  280. <plugins>
  281. <!-- Source -->
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-source-plugin</artifactId>
  285. <version>${maven.source.version}</version>
  286. <executions>
  287. <execution>
  288. <phase>package</phase>
  289. <goals>
  290. <goal>jar-no-fork</goal>
  291. </goals>
  292. </execution>
  293. </executions>
  294. </plugin>
  295. <!-- Javadoc -->
  296. <plugin>
  297. <groupId>org.apache.maven.plugins</groupId>
  298. <artifactId>maven-javadoc-plugin</artifactId>
  299. <version>${maven.javadoc.version}</version>
  300. <executions>
  301. <execution>
  302. <phase>package</phase>
  303. <goals>
  304. <goal>jar</goal>
  305. </goals>
  306. <configuration>
  307. <locale>en_US</locale>
  308. <encoding>UTF-8</encoding>
  309. <charset>UTF-8</charset>
  310. <doclint>none</doclint>
  311. </configuration>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. <!-- GPG -->
  316. <plugin>
  317. <groupId>org.apache.maven.plugins</groupId>
  318. <artifactId>maven-gpg-plugin</artifactId>
  319. <version>${maven.gpg.version}</version>
  320. <executions>
  321. <execution>
  322. <phase>verify</phase>
  323. <goals>
  324. <goal>sign</goal>
  325. </goals>
  326. </execution>
  327. </executions>
  328. </plugin>
  329. </plugins>
  330. </build>
  331. <distributionManagement>
  332. <snapshotRepository>
  333. <id>oss</id>
  334. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  335. </snapshotRepository>
  336. <repository>
  337. <id>oss</id>
  338. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  339. </repository>
  340. </distributionManagement>
  341. </profile>
  342. </profiles>
  343. </project>