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 8.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2019, Matthias Sohn <matthias.sohn@sap.com>
  4. and other copyright owners as documented in the project's IP log.
  5. This program and the accompanying materials are made available
  6. under the terms of the Eclipse Distribution License v1.0 which
  7. accompanies this distribution, is reproduced below, and is
  8. available at http://www.eclipse.org/org/documents/edl-v10.php
  9. All rights reserved.
  10. Redistribution and use in source and binary forms, with or
  11. without modification, are permitted provided that the following
  12. conditions are met:
  13. - Redistributions of source code must retain the above copyright
  14. notice, this list of conditions and the following disclaimer.
  15. - Redistributions in binary form must reproduce the above
  16. copyright notice, this list of conditions and the following
  17. disclaimer in the documentation and/or other materials provided
  18. with the distribution.
  19. - Neither the name of the Eclipse Foundation, Inc. nor the
  20. names of its contributors may be used to endorse or promote
  21. products derived from this software without specific prior
  22. written permission.
  23. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
  24. CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  25. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  26. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27. ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  28. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  30. NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  31. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  32. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  33. STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  34. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  35. ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36. -->
  37. <project xmlns="http://maven.apache.org/POM/4.0.0"
  38. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  39. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  40. <modelVersion>4.0.0</modelVersion>
  41. <groupId>org.eclipse.jgit</groupId>
  42. <version>5.1.17-SNAPSHOT</version>
  43. <artifactId>org.eclipse.jgit.benchmarks</artifactId>
  44. <packaging>jar</packaging>
  45. <name>JGit - JMH based benchmarks</name>
  46. <properties>
  47. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  48. <javac.target>1.8</javac.target>
  49. <jmh.version>1.21</jmh.version>
  50. <uberjar.name>benchmarks</uberjar.name>
  51. </properties>
  52. <dependencies>
  53. <dependency>
  54. <groupId>org.openjdk.jmh</groupId>
  55. <artifactId>jmh-core</artifactId>
  56. <version>${jmh.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.openjdk.jmh</groupId>
  60. <artifactId>jmh-generator-annprocess</artifactId>
  61. <version>${jmh.version}</version>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.eclipse.jgit</groupId>
  66. <artifactId>org.eclipse.jgit</artifactId>
  67. <version>${project.version}</version>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <sourceDirectory>src/</sourceDirectory>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-compiler-plugin</artifactId>
  76. <version>3.8.1</version>
  77. <configuration>
  78. <compilerVersion>${javac.target}</compilerVersion>
  79. <source>${javac.target}</source>
  80. <target>${javac.target}</target>
  81. <generatedSourcesDirectory>.apt_generated</generatedSourcesDirectory>
  82. </configuration>
  83. <executions>
  84. <execution>
  85. <id>compile-with-errorprone</id>
  86. <phase>compile</phase>
  87. <goals>
  88. <goal>compile</goal>
  89. </goals>
  90. <configuration>
  91. <compilerId>javac-with-errorprone</compilerId>
  92. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  93. <compilerArgs>
  94. <arg>-Xep:ExpectedExceptionChecker:ERROR</arg>
  95. </compilerArgs>
  96. </configuration>
  97. </execution>
  98. </executions>
  99. <dependencies>
  100. <dependency>
  101. <groupId>org.codehaus.plexus</groupId>
  102. <artifactId>plexus-compiler-javac</artifactId>
  103. <version>2.8.5</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.codehaus.plexus</groupId>
  107. <artifactId>plexus-compiler-javac-errorprone</artifactId>
  108. <version>2.8.5</version>
  109. </dependency>
  110. <!-- override plexus-compiler-javac-errorprone's dependency on
  111. Error Prone with the latest version -->
  112. <dependency>
  113. <groupId>com.google.errorprone</groupId>
  114. <artifactId>error_prone_core</artifactId>
  115. <version>2.3.3</version>
  116. </dependency>
  117. </dependencies>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-shade-plugin</artifactId>
  122. <executions>
  123. <execution>
  124. <phase>package</phase>
  125. <goals>
  126. <goal>shade</goal>
  127. </goals>
  128. <configuration>
  129. <finalName>${uberjar.name}</finalName>
  130. <transformers>
  131. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  132. <mainClass>org.openjdk.jmh.Main</mainClass>
  133. </transformer>
  134. </transformers>
  135. <filters>
  136. <filter>
  137. <!-- Shading signed JARs will fail without this.
  138. http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar -->
  139. <artifact>*:*</artifact>
  140. <excludes>
  141. <exclude>META-INF/*.SF</exclude>
  142. <exclude>META-INF/*.DSA</exclude>
  143. <exclude>META-INF/*.RSA</exclude>
  144. </excludes>
  145. </filter>
  146. </filters>
  147. </configuration>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. </plugins>
  152. <pluginManagement>
  153. <plugins>
  154. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  155. It has no influence on the Maven build itself. -->
  156. <plugin>
  157. <groupId>org.eclipse.m2e</groupId>
  158. <artifactId>lifecycle-mapping</artifactId>
  159. <version>1.0.0</version>
  160. <configuration>
  161. <lifecycleMappingMetadata>
  162. <pluginExecutions>
  163. <pluginExecution>
  164. <pluginExecutionFilter>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-antrun-plugin</artifactId>
  167. <versionRange>[1.8,)</versionRange>
  168. <goals>
  169. <goal>run</goal>
  170. </goals>
  171. </pluginExecutionFilter>
  172. <action>
  173. <ignore></ignore>
  174. </action>
  175. </pluginExecution>
  176. </pluginExecutions>
  177. </lifecycleMappingMetadata>
  178. </configuration>
  179. </plugin>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-site-plugin</artifactId>
  183. <version>3.8.2</version>
  184. <dependencies>
  185. <dependency><!-- add support for ssh/scp -->
  186. <groupId>org.apache.maven.wagon</groupId>
  187. <artifactId>wagon-ssh</artifactId>
  188. <version>3.3.4</version>
  189. </dependency>
  190. </dependencies>
  191. </plugin>
  192. <plugin>
  193. <groupId>org.apache.maven.plugins</groupId>
  194. <artifactId>maven-surefire-report-plugin</artifactId>
  195. <version>3.0.0-M3</version>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-jxr-plugin</artifactId>
  200. <version>3.0.0</version>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-project-info-reports-plugin</artifactId>
  205. <version>3.0.0</version>
  206. </plugin>
  207. </plugins>
  208. </pluginManagement>
  209. </build>
  210. <distributionManagement>
  211. <repository>
  212. <id>repo.eclipse.org</id>
  213. <name>JGit Maven Repository - Releases</name>
  214. <url>https://repo.eclipse.org/content/repositories/jgit-releases/</url>
  215. </repository>
  216. <snapshotRepository>
  217. <id>repo.eclipse.org</id>
  218. <name>JGit Maven Repository - Snapshots</name>
  219. <url>https://repo.eclipse.org/content/repositories/jgit-snapshots/</url>
  220. <uniqueVersion>true</uniqueVersion>
  221. </snapshotRepository>
  222. <site>
  223. <id>jgit.website</id>
  224. <name>JGit Website</name>
  225. <url>${jgit.website.url}</url>
  226. </site>
  227. </distributionManagement>
  228. </project>