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.

114 líneas
4.4KB

  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.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>${maven.compiler.version}</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-pmd-plugin</artifactId>
  55. <version>${maven.pmd.version}</version>
  56. <configuration>
  57. <skip>true</skip>
  58. </configuration>
  59. </plugin>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-deploy-plugin</artifactId>
  63. <version>${maven.deploy.version}</version>
  64. <configuration>
  65. <skip>true</skip>
  66. </configuration>
  67. </plugin>
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-shade-plugin</artifactId>
  71. <version>3.1.1</version>
  72. <executions>
  73. <execution>
  74. <phase>package</phase>
  75. <goals>
  76. <goal>shade</goal>
  77. </goals>
  78. <configuration>
  79. <finalName>${uberjar.name}</finalName>
  80. <transformers>
  81. <transformer
  82. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  83. <mainClass>org.openjdk.jmh.Main</mainClass>
  84. </transformer>
  85. </transformers>
  86. <filters>
  87. <filter>
  88. <!--
  89. Shading signed JARs will fail without this.
  90. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
  91. -->
  92. <artifact>*:*</artifact>
  93. <excludes>
  94. <exclude>META-INF/*.SF</exclude>
  95. <exclude>META-INF/*.DSA</exclude>
  96. <exclude>META-INF/*.RSA</exclude>
  97. </excludes>
  98. </filter>
  99. </filters>
  100. </configuration>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. </project>