seninel部署
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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