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.

pom.xml 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2019, Matthias Sohn <matthias.sohn@sap.com> and others
  4. This program and the accompanying materials are made available under the
  5. terms of the Eclipse Distribution License v. 1.0 which is available at
  6. http://www.eclipse.org/org/documents/edl-v10.php.
  7. SPDX-License-Identifier: BSD-3-Clause
  8. -->
  9. <project xmlns="http://maven.apache.org/POM/4.0.0"
  10. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  12. <modelVersion>4.0.0</modelVersion>
  13. <groupId>org.eclipse.jgit</groupId>
  14. <version>5.9.1-SNAPSHOT</version>
  15. <artifactId>org.eclipse.jgit.benchmarks</artifactId>
  16. <packaging>jar</packaging>
  17. <name>JGit - JMH based benchmarks</name>
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <javac.target>1.8</javac.target>
  21. <jmh.version>1.21</jmh.version>
  22. <uberjar.name>benchmarks</uberjar.name>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.openjdk.jmh</groupId>
  27. <artifactId>jmh-core</artifactId>
  28. <version>${jmh.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.openjdk.jmh</groupId>
  32. <artifactId>jmh-generator-annprocess</artifactId>
  33. <version>${jmh.version}</version>
  34. <scope>provided</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.eclipse.jgit</groupId>
  38. <artifactId>org.eclipse.jgit</artifactId>
  39. <version>${project.version}</version>
  40. </dependency>
  41. </dependencies>
  42. <build>
  43. <sourceDirectory>src/</sourceDirectory>
  44. <plugins>
  45. <plugin>
  46. <groupId>org.apache.maven.plugins</groupId>
  47. <artifactId>maven-compiler-plugin</artifactId>
  48. <version>3.8.1</version>
  49. <configuration>
  50. <compilerVersion>${javac.target}</compilerVersion>
  51. <source>${javac.target}</source>
  52. <target>${javac.target}</target>
  53. <generatedSourcesDirectory>.apt_generated</generatedSourcesDirectory>
  54. </configuration>
  55. <executions>
  56. <execution>
  57. <id>compile-with-errorprone</id>
  58. <phase>compile</phase>
  59. <goals>
  60. <goal>compile</goal>
  61. </goals>
  62. <configuration>
  63. <compilerId>javac-with-errorprone</compilerId>
  64. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  65. </configuration>
  66. </execution>
  67. </executions>
  68. <dependencies>
  69. <dependency>
  70. <groupId>org.codehaus.plexus</groupId>
  71. <artifactId>plexus-compiler-javac</artifactId>
  72. <version>2.8.5</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.codehaus.plexus</groupId>
  76. <artifactId>plexus-compiler-javac-errorprone</artifactId>
  77. <version>2.8.5</version>
  78. </dependency>
  79. <!-- override plexus-compiler-javac-errorprone's dependency on
  80. Error Prone with the latest version -->
  81. <dependency>
  82. <groupId>com.google.errorprone</groupId>
  83. <artifactId>error_prone_core</artifactId>
  84. <version>2.3.4</version>
  85. </dependency>
  86. </dependencies>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-shade-plugin</artifactId>
  91. <version>3.2.1</version>
  92. <executions>
  93. <execution>
  94. <phase>package</phase>
  95. <goals>
  96. <goal>shade</goal>
  97. </goals>
  98. <configuration>
  99. <finalName>${uberjar.name}</finalName>
  100. <transformers>
  101. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  102. <mainClass>org.openjdk.jmh.Main</mainClass>
  103. </transformer>
  104. </transformers>
  105. <filters>
  106. <filter>
  107. <!-- Shading signed JARs will fail without this.
  108. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar -->
  109. <artifact>*:*</artifact>
  110. <excludes>
  111. <exclude>META-INF/*.SF</exclude>
  112. <exclude>META-INF/*.DSA</exclude>
  113. <exclude>META-INF/*.RSA</exclude>
  114. </excludes>
  115. </filter>
  116. </filters>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. </plugins>
  122. <pluginManagement>
  123. <plugins>
  124. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  125. It has no influence on the Maven build itself. -->
  126. <plugin>
  127. <groupId>org.eclipse.m2e</groupId>
  128. <artifactId>lifecycle-mapping</artifactId>
  129. <version>1.0.0</version>
  130. <configuration>
  131. <lifecycleMappingMetadata>
  132. <pluginExecutions>
  133. <pluginExecution>
  134. <pluginExecutionFilter>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-antrun-plugin</artifactId>
  137. <versionRange>[1.8,)</versionRange>
  138. <goals>
  139. <goal>run</goal>
  140. </goals>
  141. </pluginExecutionFilter>
  142. <action>
  143. <ignore></ignore>
  144. </action>
  145. </pluginExecution>
  146. </pluginExecutions>
  147. </lifecycleMappingMetadata>
  148. </configuration>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-site-plugin</artifactId>
  153. <version>3.8.2</version>
  154. <dependencies>
  155. <dependency><!-- add support for ssh/scp -->
  156. <groupId>org.apache.maven.wagon</groupId>
  157. <artifactId>wagon-ssh</artifactId>
  158. <version>3.3.4</version>
  159. </dependency>
  160. </dependencies>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-surefire-report-plugin</artifactId>
  165. <version>3.0.0-M3</version>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-jxr-plugin</artifactId>
  170. <version>3.0.0</version>
  171. </plugin>
  172. <plugin>
  173. <groupId>org.apache.maven.plugins</groupId>
  174. <artifactId>maven-project-info-reports-plugin</artifactId>
  175. <version>3.0.0</version>
  176. </plugin>
  177. </plugins>
  178. </pluginManagement>
  179. </build>
  180. <distributionManagement>
  181. <repository>
  182. <id>repo.eclipse.org</id>
  183. <name>JGit Maven Repository - Releases</name>
  184. <url>https://repo.eclipse.org/content/repositories/jgit-releases/</url>
  185. </repository>
  186. <snapshotRepository>
  187. <id>repo.eclipse.org</id>
  188. <name>JGit Maven Repository - Snapshots</name>
  189. <url>https://repo.eclipse.org/content/repositories/jgit-snapshots/</url>
  190. <uniqueVersion>true</uniqueVersion>
  191. </snapshotRepository>
  192. <site>
  193. <id>jgit.website</id>
  194. <name>JGit Website</name>
  195. <url>${jgit.website.url}</url>
  196. </site>
  197. </distributionManagement>
  198. </project>