seninel部署
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pom.xml 16KB

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