seninel部署
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 satır
3.9KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>sentinel-parent</artifactId>
  7. <groupId>com.alibaba.csp</groupId>
  8. <version>1.8.2-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sentinel-benchmark</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Sentinel JMH benchmark</name>
  14. <prerequisites>
  15. <maven>3.0</maven>
  16. </prerequisites>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.alibaba.csp</groupId>
  20. <artifactId>sentinel-core</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.openjdk.jmh</groupId>
  24. <artifactId>jmh-core</artifactId>
  25. <version>${jmh.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.openjdk.jmh</groupId>
  29. <artifactId>jmh-generator-annprocess</artifactId>
  30. <version>${jmh.version}</version>
  31. <scope>provided</scope>
  32. </dependency>
  33. </dependencies>
  34. <properties>
  35. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  36. <jmh.version>1.21</jmh.version>
  37. <uberjar.name>benchmarks</uberjar.name>
  38. </properties>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-pmd-plugin</artifactId>
  44. <version>${maven.pmd.version}</version>
  45. <configuration>
  46. <skip>true</skip>
  47. </configuration>
  48. </plugin>
  49. <plugin>
  50. <groupId>org.apache.maven.plugins</groupId>
  51. <artifactId>maven-deploy-plugin</artifactId>
  52. <version>${maven.deploy.version}</version>
  53. <configuration>
  54. <skip>true</skip>
  55. </configuration>
  56. </plugin>
  57. <plugin>
  58. <groupId>org.apache.maven.plugins</groupId>
  59. <artifactId>maven-shade-plugin</artifactId>
  60. <version>3.1.1</version>
  61. <executions>
  62. <execution>
  63. <phase>package</phase>
  64. <goals>
  65. <goal>shade</goal>
  66. </goals>
  67. <configuration>
  68. <finalName>${uberjar.name}</finalName>
  69. <transformers>
  70. <transformer
  71. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  72. <mainClass>org.openjdk.jmh.Main</mainClass>
  73. </transformer>
  74. </transformers>
  75. <filters>
  76. <filter>
  77. <!--
  78. Shading signed JARs will fail without this.
  79. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
  80. -->
  81. <artifact>*:*</artifact>
  82. <excludes>
  83. <exclude>META-INF/*.SF</exclude>
  84. <exclude>META-INF/*.DSA</exclude>
  85. <exclude>META-INF/*.RSA</exclude>
  86. </excludes>
  87. </filter>
  88. </filters>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. </project>