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.

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