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.

98 lines
3.8KB

  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.4.0-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. <javac.target>1.8</javac.target>
  38. <uberjar.name>benchmarks</uberjar.name>
  39. </properties>
  40. <build>
  41. <plugins>
  42. <plugin>
  43. <groupId>org.apache.maven.plugins</groupId>
  44. <artifactId>maven-compiler-plugin</artifactId>
  45. <version>3.8.0</version>
  46. <configuration>
  47. <compilerVersion>${javac.target}</compilerVersion>
  48. <source>${javac.target}</source>
  49. <target>${javac.target}</target>
  50. </configuration>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-shade-plugin</artifactId>
  55. <version>3.1.1</version>
  56. <executions>
  57. <execution>
  58. <phase>package</phase>
  59. <goals>
  60. <goal>shade</goal>
  61. </goals>
  62. <configuration>
  63. <finalName>${uberjar.name}</finalName>
  64. <transformers>
  65. <transformer
  66. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  67. <mainClass>org.openjdk.jmh.Main</mainClass>
  68. </transformer>
  69. </transformers>
  70. <filters>
  71. <filter>
  72. <!--
  73. Shading signed JARs will fail without this.
  74. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
  75. -->
  76. <artifact>*:*</artifact>
  77. <excludes>
  78. <exclude>META-INF/*.SF</exclude>
  79. <exclude>META-INF/*.DSA</exclude>
  80. <exclude>META-INF/*.RSA</exclude>
  81. </excludes>
  82. </filter>
  83. </filters>
  84. </configuration>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. </plugins>
  89. </build>
  90. </project>