pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>net.ranides</groupId>
  6. <artifactId>assira.project</artifactId>
  7. <version>2.3.0</version>
  8. <relativePath>..</relativePath>
  9. </parent>
  10. <name>assira.benchmark</name>
  11. <groupId>net.ranides</groupId>
  12. <artifactId>assira.benchmark</artifactId>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <jmh.version>1.12</jmh.version>
  16. <uberjar.name>benchmarks</uberjar.name>
  17. </properties>
  18. <prerequisites>
  19. <maven>3.0</maven>
  20. </prerequisites>
  21. <dependencies>
  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. <dependency>
  34. <groupId>net.ranides</groupId>
  35. <artifactId>assira</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>junit</groupId>
  39. <artifactId>junit</artifactId>
  40. <scope>test</scope>
  41. </dependency>
  42. </dependencies>
  43. <build>
  44. <plugins>
  45. <plugin>
  46. <groupId>org.apache.maven.plugins</groupId>
  47. <artifactId>maven-compiler-plugin</artifactId>
  48. <version>3.1</version>
  49. <configuration>
  50. <compilerVersion>1.8</compilerVersion>
  51. <source>1.8</source>
  52. <target>1.8</target>
  53. </configuration>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-shade-plugin</artifactId>
  58. <version>2.2</version>
  59. <executions>
  60. <execution>
  61. <phase>package</phase>
  62. <goals>
  63. <goal>shade</goal>
  64. </goals>
  65. <configuration>
  66. <finalName>${uberjar.name}</finalName>
  67. <transformers>
  68. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  69. <mainClass>org.openjdk.jmh.Main</mainClass>
  70. </transformer>
  71. </transformers>
  72. <filters>
  73. <filter>
  74. <!--
  75. Shading signed JARs will fail without this.
  76. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
  77. -->
  78. <artifact>*:*</artifact>
  79. <excludes>
  80. <exclude>META-INF/*.SF</exclude>
  81. <exclude>META-INF/*.DSA</exclude>
  82. <exclude>META-INF/*.RSA</exclude>
  83. </excludes>
  84. </filter>
  85. </filters>
  86. </configuration>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. </plugins>
  91. <pluginManagement>
  92. <plugins>
  93. <plugin>
  94. <artifactId>maven-clean-plugin</artifactId>
  95. <version>2.5</version>
  96. </plugin>
  97. <plugin>
  98. <artifactId>maven-deploy-plugin</artifactId>
  99. <version>2.8.1</version>
  100. </plugin>
  101. <plugin>
  102. <artifactId>maven-install-plugin</artifactId>
  103. <version>2.5.1</version>
  104. </plugin>
  105. <plugin>
  106. <artifactId>maven-jar-plugin</artifactId>
  107. <version>2.4</version>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-javadoc-plugin</artifactId>
  111. <version>2.9.1</version>
  112. </plugin>
  113. <plugin>
  114. <artifactId>maven-resources-plugin</artifactId>
  115. <version>2.6</version>
  116. </plugin>
  117. <plugin>
  118. <artifactId>maven-site-plugin</artifactId>
  119. <version>3.3</version>
  120. </plugin>
  121. <plugin>
  122. <artifactId>maven-source-plugin</artifactId>
  123. <version>2.2.1</version>
  124. </plugin>
  125. <plugin>
  126. <artifactId>maven-surefire-plugin</artifactId>
  127. <version>2.17</version>
  128. </plugin>
  129. </plugins>
  130. </pluginManagement>
  131. </build>
  132. </project>