seninel部署
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

383 lines
16KB

  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.8.0-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.68</fastjson.version>
  42. <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
  43. <!-- Test libs -->
  44. <junit.version>4.12</junit.version>
  45. <mockito.version>2.28.2</mockito.version>
  46. <assertj.version>3.12.1</assertj.version>
  47. <awaitility.version>3.1.5</awaitility.version>
  48. <powermock.version>2.0.0</powermock.version>
  49. <!-- Build -->
  50. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  51. <java.source.version>1.7</java.source.version>
  52. <java.target.version>1.7</java.target.version>
  53. <java.encoding>UTF-8</java.encoding>
  54. <maven.compiler.version>3.8.0</maven.compiler.version>
  55. <maven.surefire.version>2.22.1</maven.surefire.version>
  56. <maven.source.version>3.0.1</maven.source.version>
  57. <maven.javadoc.version>3.0.1</maven.javadoc.version>
  58. <maven.deploy.version>2.8.2</maven.deploy.version>
  59. <maven.gpg.version>1.6</maven.gpg.version>
  60. <maven.jacoco.version>0.8.3</maven.jacoco.version>
  61. <maven.jar.version>3.1.0</maven.jar.version>
  62. <maven.pmd.version>3.8</maven.pmd.version>
  63. </properties>
  64. <modules>
  65. <module>sentinel-core</module>
  66. <module>sentinel-extension</module>
  67. <module>sentinel-transport</module>
  68. <module>sentinel-adapter</module>
  69. <module>sentinel-cluster</module>
  70. <module>sentinel-logging</module>
  71. <module>sentinel-dashboard</module>
  72. <module>sentinel-demo</module>
  73. <module>sentinel-benchmark</module>
  74. </modules>
  75. <dependencyManagement>
  76. <dependencies>
  77. <dependency>
  78. <groupId>com.alibaba.csp</groupId>
  79. <artifactId>sentinel-core</artifactId>
  80. <version>${project.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.alibaba.csp</groupId>
  84. <artifactId>sentinel-extension</artifactId>
  85. <version>${project.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.alibaba.csp</groupId>
  89. <artifactId>sentinel-annotation-aspectj</artifactId>
  90. <version>${project.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.alibaba.csp</groupId>
  94. <artifactId>sentinel-parameter-flow-control</artifactId>
  95. <version>${project.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.alibaba.csp</groupId>
  99. <artifactId>sentinel-datasource-extension</artifactId>
  100. <version>${project.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.alibaba.csp</groupId>
  104. <artifactId>sentinel-datasource-nacos</artifactId>
  105. <version>${project.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.alibaba.csp</groupId>
  109. <artifactId>sentinel-datasource-zookeeper</artifactId>
  110. <version>${project.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.alibaba.csp</groupId>
  114. <artifactId>sentinel-datasource-apollo</artifactId>
  115. <version>${project.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.alibaba.csp</groupId>
  119. <artifactId>sentinel-datasource-etcd</artifactId>
  120. <version>${project.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.alibaba.csp</groupId>
  124. <artifactId>sentinel-transport-simple-http</artifactId>
  125. <version>${project.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.alibaba.csp</groupId>
  129. <artifactId>sentinel-transport-netty-http</artifactId>
  130. <version>${project.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.alibaba.csp</groupId>
  134. <artifactId>sentinel-transport-common</artifactId>
  135. <version>${project.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.alibaba.csp</groupId>
  139. <artifactId>sentinel-cluster-common-default</artifactId>
  140. <version>${project.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.alibaba.csp</groupId>
  144. <artifactId>sentinel-adapter</artifactId>
  145. <version>${project.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.alibaba</groupId>
  149. <artifactId>fastjson</artifactId>
  150. <version>${fastjson.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>junit</groupId>
  154. <artifactId>junit</artifactId>
  155. <version>${junit.version}</version>
  156. <scope>test</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.mockito</groupId>
  160. <artifactId>mockito-core</artifactId>
  161. <version>${mockito.version}</version>
  162. <scope>test</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.assertj</groupId>
  166. <artifactId>assertj-core</artifactId>
  167. <version>${assertj.version}</version>
  168. <scope>test</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.awaitility</groupId>
  172. <artifactId>awaitility</artifactId>
  173. <version>${awaitility.version}</version>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.hamcrest</groupId>
  178. <artifactId>java-hamcrest</artifactId>
  179. <version>2.0.0.0</version>
  180. <scope>test</scope>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.powermock</groupId>
  184. <artifactId>powermock-module-junit4</artifactId>
  185. <version>${powermock.version}</version>
  186. <scope>test</scope>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.powermock</groupId>
  190. <artifactId>powermock-api-mockito2</artifactId>
  191. <version>${powermock.version}</version>
  192. <scope>test</scope>
  193. </dependency>
  194. </dependencies>
  195. </dependencyManagement>
  196. <build>
  197. <plugins>
  198. <plugin>
  199. <groupId>org.apache.maven.plugins</groupId>
  200. <artifactId>maven-pmd-plugin</artifactId>
  201. <version>${maven.pmd.version}</version>
  202. <configuration>
  203. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  204. <minimumPriority>1</minimumPriority>
  205. <excludeRoots>
  206. <excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
  207. </excludeRoots>
  208. <excludes>
  209. <exclude>**/*_jmhTest.java</exclude>
  210. </excludes>
  211. <printFailingErrors>true</printFailingErrors>
  212. <rulesets>
  213. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  214. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  215. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  216. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  217. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  218. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  219. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  220. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  221. <ruleset>rulesets/java/ali-other.xml</ruleset>
  222. <ruleset>rulesets/java/ali-set.xml</ruleset>
  223. </rulesets>
  224. </configuration>
  225. <executions>
  226. <execution>
  227. <phase>verify</phase>
  228. <goals>
  229. <goal>check</goal>
  230. </goals>
  231. </execution>
  232. </executions>
  233. <dependencies>
  234. <dependency>
  235. <groupId>com.alibaba.p3c</groupId>
  236. <artifactId>p3c-pmd</artifactId>
  237. <version>1.3.6</version>
  238. </dependency>
  239. </dependencies>
  240. </plugin>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-compiler-plugin</artifactId>
  244. <version>${maven.compiler.version}</version>
  245. <configuration>
  246. <source>${java.source.version}</source>
  247. <target>${java.target.version}</target>
  248. <encoding>${java.encoding}</encoding>
  249. </configuration>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-surefire-plugin</artifactId>
  254. <configuration>
  255. <!-- CircleCI build workaround -->
  256. <argLine>@{argLine} -Xms1024m -Xmx2048m</argLine>
  257. <useSystemClassLoader>false</useSystemClassLoader>
  258. </configuration>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.jacoco</groupId>
  262. <artifactId>jacoco-maven-plugin</artifactId>
  263. <version>${maven.jacoco.version}</version>
  264. <executions>
  265. <execution>
  266. <goals>
  267. <goal>prepare-agent</goal>
  268. </goals>
  269. </execution>
  270. <execution>
  271. <id>report</id>
  272. <phase>test</phase>
  273. <goals>
  274. <goal>report</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. </plugin>
  279. </plugins>
  280. <pluginManagement>
  281. <plugins>
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-surefire-plugin</artifactId>
  285. <version>${maven.surefire.version}</version>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-jar-plugin</artifactId>
  290. <version>${maven.jar.version}</version>
  291. </plugin>
  292. <plugin>
  293. <groupId>org.apache.maven.plugins</groupId>
  294. <artifactId>maven-gpg-plugin</artifactId>
  295. <version>${maven.gpg.version}</version>
  296. </plugin>
  297. </plugins>
  298. </pluginManagement>
  299. </build>
  300. <profiles>
  301. <profile>
  302. <id>oss</id>
  303. <build>
  304. <plugins>
  305. <!-- Source -->
  306. <plugin>
  307. <groupId>org.apache.maven.plugins</groupId>
  308. <artifactId>maven-source-plugin</artifactId>
  309. <version>${maven.source.version}</version>
  310. <executions>
  311. <execution>
  312. <phase>package</phase>
  313. <goals>
  314. <goal>jar-no-fork</goal>
  315. </goals>
  316. </execution>
  317. </executions>
  318. </plugin>
  319. <!-- Javadoc -->
  320. <plugin>
  321. <groupId>org.apache.maven.plugins</groupId>
  322. <artifactId>maven-javadoc-plugin</artifactId>
  323. <version>${maven.javadoc.version}</version>
  324. <executions>
  325. <execution>
  326. <phase>package</phase>
  327. <goals>
  328. <goal>jar</goal>
  329. </goals>
  330. <configuration>
  331. <locale>en_US</locale>
  332. <encoding>UTF-8</encoding>
  333. <charset>UTF-8</charset>
  334. <doclint>none</doclint>
  335. </configuration>
  336. </execution>
  337. </executions>
  338. </plugin>
  339. <!-- GPG -->
  340. <plugin>
  341. <groupId>org.apache.maven.plugins</groupId>
  342. <artifactId>maven-gpg-plugin</artifactId>
  343. <version>${maven.gpg.version}</version>
  344. <executions>
  345. <execution>
  346. <phase>verify</phase>
  347. <goals>
  348. <goal>sign</goal>
  349. </goals>
  350. </execution>
  351. </executions>
  352. </plugin>
  353. </plugins>
  354. </build>
  355. <distributionManagement>
  356. <snapshotRepository>
  357. <id>oss</id>
  358. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  359. </snapshotRepository>
  360. <repository>
  361. <id>oss</id>
  362. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  363. </repository>
  364. </distributionManagement>
  365. </profile>
  366. </profiles>
  367. </project>