seninel部署
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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