pom.xml 5.4 KB

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