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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2009-2010, Google Inc.
  4. Copyright (C) 2012, Matthias Sohn <matthias.sohn@sap.com>
  5. and other copyright owners as documented in the project's IP log.
  6. This program and the accompanying materials are made available
  7. under the terms of the Eclipse Distribution License v1.0 which
  8. accompanies this distribution, is reproduced below, and is
  9. available at http://www.eclipse.org/org/documents/edl-v10.php
  10. All rights reserved.
  11. Redistribution and use in source and binary forms, with or
  12. without modification, are permitted provided that the following
  13. conditions are met:
  14. - Redistributions of source code must retain the above copyright
  15. notice, this list of conditions and the following disclaimer.
  16. - Redistributions in binary form must reproduce the above
  17. copyright notice, this list of conditions and the following
  18. disclaimer in the documentation and/or other materials provided
  19. with the distribution.
  20. - Neither the name of the Eclipse Foundation, Inc. nor the
  21. names of its contributors may be used to endorse or promote
  22. products derived from this software without specific prior
  23. written permission.
  24. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
  25. CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  26. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  27. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28. ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  29. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  30. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  31. NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  32. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  33. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  34. STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  35. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  36. ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  37. -->
  38. <project xmlns="http://maven.apache.org/POM/4.0.0"
  39. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  40. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  41. <modelVersion>4.0.0</modelVersion>
  42. <groupId>org.eclipse.jgit</groupId>
  43. <artifactId>org.eclipse.jgit-parent</artifactId>
  44. <packaging>pom</packaging>
  45. <version>5.3.10-SNAPSHOT</version>
  46. <name>JGit - Parent</name>
  47. <url>${jgit-url}</url>
  48. <organization>
  49. <name>Eclipse JGit Project</name>
  50. <url>http://www.eclipse.org/jgit</url>
  51. </organization>
  52. <description>
  53. Pure Java implementation of Git
  54. </description>
  55. <scm>
  56. <url>http://git.eclipse.org/c/jgit/jgit.git/</url>
  57. <connection>scm:git:https://git.eclipse.org/r/jgit/jgit</connection>
  58. </scm>
  59. <ciManagement>
  60. <system>hudson</system>
  61. <url>https://hudson.eclipse.org/jgit/</url>
  62. </ciManagement>
  63. <developers>
  64. <developer>
  65. <name>Andrey Loskutov</name>
  66. </developer>
  67. <developer>
  68. <name>Christian Halstrick</name>
  69. </developer>
  70. <developer>
  71. <name>Dave Borowitz</name>
  72. </developer>
  73. <developer>
  74. <name>David Pursehouse</name>
  75. </developer>
  76. <developer>
  77. <name>Gunnar Wagenknecht</name>
  78. </developer>
  79. <developer>
  80. <name>Jonathan Nieder</name>
  81. </developer>
  82. <developer>
  83. <name>Jonathan Tan</name>
  84. </developer>
  85. <developer>
  86. <name>Matthias Sohn</name>
  87. </developer>
  88. <developer>
  89. <name>Sasa Zivkov</name>
  90. </developer>
  91. <developer>
  92. <name>Terry Parker</name>
  93. </developer>
  94. <developer>
  95. <name>Thomas Wolf</name>
  96. </developer>
  97. </developers>
  98. <mailingLists>
  99. <mailingList>
  100. <name>jgit-dev Mailing List</name>
  101. <post>jgit-dev@eclipse.org</post>
  102. <subscribe>https://dev.eclipse.org/mailman/listinfo/jgit-dev</subscribe>
  103. <unsubscribe>https://dev.eclipse.org/mailman/listinfo/jgit-dev</unsubscribe>
  104. <archive>http://dev.eclipse.org/mhonarc/lists/jgit-dev</archive>
  105. </mailingList>
  106. <mailingList>
  107. <name>GIT Mailing List</name>
  108. <post>git@vger.kernel.org</post>
  109. <archive>http://marc.info/?l=git</archive>
  110. </mailingList>
  111. </mailingLists>
  112. <issueManagement>
  113. <url>https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced;component=JGit;product=JGit;classification=Technology</url>
  114. <system>Bugzilla</system>
  115. </issueManagement>
  116. <licenses>
  117. <license>
  118. <name>Eclipse Distribution License (New BSD License)</name>
  119. <comments>
  120. All rights reserved.
  121. Redistribution and use in source and binary forms, with or
  122. without modification, are permitted provided that the following
  123. conditions are met:
  124. - Redistributions of source code must retain the above copyright
  125. notice, this list of conditions and the following disclaimer.
  126. - Redistributions in binary form must reproduce the above
  127. copyright notice, this list of conditions and the following
  128. disclaimer in the documentation and/or other materials provided
  129. with the distribution.
  130. - Neither the name of the Eclipse Foundation, Inc. nor the
  131. names of its contributors may be used to endorse or promote
  132. products derived from this software without specific prior
  133. written permission.
  134. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
  135. CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  136. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  137. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  138. ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  139. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  140. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  141. NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  142. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  143. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  144. STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  145. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  146. ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  147. </comments>
  148. </license>
  149. </licenses>
  150. <properties>
  151. <jgit-url>http://www.eclipse.org/jgit/</jgit-url>
  152. <jgit-copyright>Copyright (c) 2005, 2009 Shawn Pearce, Robin Rosenberg, et.al.</jgit-copyright>
  153. <jgit.website.url>scp://build.eclipse.org/home/data/httpd/download.eclipse.org/jgit/site/${project.version}/</jgit.website.url>
  154. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  155. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  156. <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
  157. <bundle-manifest>${project.build.directory}/META-INF/MANIFEST.MF</bundle-manifest>
  158. <jgit-last-release-version>5.2.0.201812061821-r</jgit-last-release-version>
  159. <apache-sshd-version>2.0.0</apache-sshd-version>
  160. <jsch-version>0.1.55</jsch-version>
  161. <jzlib-version>1.1.1</jzlib-version>
  162. <javaewah-version>1.1.6</javaewah-version>
  163. <junit-version>4.12</junit-version>
  164. <test-fork-count>1C</test-fork-count>
  165. <args4j-version>2.33</args4j-version>
  166. <commons-compress-version>1.18</commons-compress-version>
  167. <osgi-core-version>4.3.1</osgi-core-version>
  168. <servlet-api-version>3.1.0</servlet-api-version>
  169. <jetty-version>9.4.14.v20181114</jetty-version>
  170. <japicmp-version>0.14.1</japicmp-version>
  171. <httpclient-version>4.5.6</httpclient-version>
  172. <httpcore-version>4.4.10</httpcore-version>
  173. <slf4j-version>1.7.2</slf4j-version>
  174. <log4j-version>1.2.15</log4j-version>
  175. <maven-javadoc-plugin-version>3.1.0</maven-javadoc-plugin-version>
  176. <tycho-extras-version>1.3.0</tycho-extras-version>
  177. <gson-version>2.8.2</gson-version>
  178. <bouncycastle-version>1.60</bouncycastle-version>
  179. <spotbugs-maven-plugin-version>3.1.11</spotbugs-maven-plugin-version>
  180. <maven-project-info-reports-plugin-version>3.0.0</maven-project-info-reports-plugin-version>
  181. <maven-jxr-plugin-version>3.0.0</maven-jxr-plugin-version>
  182. <spotbugs-maven-plugin-version>3.1.12</spotbugs-maven-plugin-version>
  183. <maven-surefire-plugin-version>3.0.0-M3</maven-surefire-plugin-version>
  184. <maven-surefire-report-plugin-version>${maven-surefire-plugin-version}</maven-surefire-report-plugin-version>
  185. <maven-compiler-plugin-version>3.8.1</maven-compiler-plugin-version>
  186. <!-- Properties to enable jacoco code coverage analysis -->
  187. <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
  188. <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
  189. <sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath>
  190. </properties>
  191. <repositories>
  192. <repository>
  193. <id>jgit-repository</id>
  194. <url>https://repo.eclipse.org/content/repositories/jgit-releases/</url>
  195. </repository>
  196. </repositories>
  197. <pluginRepositories>
  198. <pluginRepository>
  199. <id>repo.eclipse.org.cbi-releases</id>
  200. <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
  201. </pluginRepository>
  202. <pluginRepository>
  203. <id>repo.eclipse.org.cbi-snapshots</id>
  204. <url>https://repo.eclipse.org/content/repositories/cbi-snapshots/</url>
  205. </pluginRepository>
  206. </pluginRepositories>
  207. <build>
  208. <pluginManagement>
  209. <plugins>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-jar-plugin</artifactId>
  213. <version>3.1.2</version>
  214. <configuration>
  215. <archive>
  216. <manifestEntries>
  217. <Implementation-Title>JGit ${project.artifactId}</Implementation-Title>
  218. <Implementation-Version>${project.version}</Implementation-Version>
  219. <Implementation-Vendor>Eclipse.org - JGit</Implementation-Vendor>
  220. <Implementation-Vendor-Id>org.eclipse.jgit</Implementation-Vendor-Id>
  221. <Implementation-Vendor-URL>${jgit-url}</Implementation-Vendor-URL>
  222. </manifestEntries>
  223. </archive>
  224. <!-- TODO: uncomment this in order to skip empty artifact of test modules as soon as bug 416299 is fixed
  225. <skipIfEmpty>true</skipIfEmpty>
  226. -->
  227. </configuration>
  228. </plugin>
  229. <plugin>
  230. <artifactId>maven-clean-plugin</artifactId>
  231. <version>3.1.0</version>
  232. </plugin>
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-shade-plugin</artifactId>
  236. <version>3.2.1</version>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-antrun-plugin</artifactId>
  241. <version>1.8</version>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-dependency-plugin</artifactId>
  246. <version>3.1.1</version>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-source-plugin</artifactId>
  251. <version>3.1.0</version>
  252. </plugin>
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-javadoc-plugin</artifactId>
  256. <version>${maven-javadoc-plugin-version}</version>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-surefire-plugin</artifactId>
  261. <version>${maven-surefire-plugin-version}</version>
  262. <configuration>
  263. <forkCount>${test-fork-count}</forkCount>
  264. <reuseForks>true</reuseForks>
  265. <argLine>@{argLine}</argLine>
  266. </configuration>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.codehaus.mojo</groupId>
  270. <artifactId>build-helper-maven-plugin</artifactId>
  271. <version>3.0.0</version>
  272. </plugin>
  273. <plugin>
  274. <groupId>com.github.spotbugs</groupId>
  275. <artifactId>spotbugs-maven-plugin</artifactId>
  276. <version>${spotbugs-maven-plugin-version}</version>
  277. <configuration>
  278. <findbugsXmlOutput>true</findbugsXmlOutput>
  279. <failOnError>false</failOnError>
  280. </configuration>
  281. <executions>
  282. <execution>
  283. <goals>
  284. <goal>check</goal>
  285. </goals>
  286. </execution>
  287. </executions>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-pmd-plugin</artifactId>
  292. <version>3.12.0</version>
  293. <configuration>
  294. <sourceEncoding>utf-8</sourceEncoding>
  295. <minimumTokens>100</minimumTokens>
  296. <targetJdk>1.8</targetJdk>
  297. <format>xml</format>
  298. <failOnViolation>false</failOnViolation>
  299. <excludes>
  300. <exclude>**/UbcCheck.java</exclude>
  301. </excludes>
  302. </configuration>
  303. <executions>
  304. <execution>
  305. <goals>
  306. <goal>cpd-check</goal>
  307. </goals>
  308. </execution>
  309. </executions>
  310. </plugin>
  311. <plugin>
  312. <groupId>org.eclipse.cbi.maven.plugins</groupId>
  313. <artifactId>eclipse-jarsigner-plugin</artifactId>
  314. <version>1.1.5</version>
  315. </plugin>
  316. <plugin>
  317. <groupId>org.eclipse.tycho.extras</groupId>
  318. <artifactId>tycho-pack200a-plugin</artifactId>
  319. <version>${tycho-extras-version}</version>
  320. </plugin>
  321. <plugin>
  322. <groupId>org.eclipse.tycho.extras</groupId>
  323. <artifactId>tycho-pack200b-plugin</artifactId>
  324. <version>${tycho-extras-version}</version>
  325. </plugin>
  326. <plugin>
  327. <groupId>org.jacoco</groupId>
  328. <artifactId>jacoco-maven-plugin</artifactId>
  329. <version>0.8.4</version>
  330. </plugin>
  331. <plugin>
  332. <groupId>org.apache.maven.plugins</groupId>
  333. <artifactId>maven-site-plugin</artifactId>
  334. <version>3.7.1</version>
  335. <dependencies>
  336. <dependency><!-- add support for ssh/scp -->
  337. <groupId>org.apache.maven.wagon</groupId>
  338. <artifactId>wagon-ssh</artifactId>
  339. <version>3.3.2</version>
  340. </dependency>
  341. </dependencies>
  342. </plugin>
  343. <plugin>
  344. <groupId>org.apache.maven.plugins</groupId>
  345. <artifactId>maven-surefire-report-plugin</artifactId>
  346. <version>${maven-surefire-report-plugin-version}</version>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.apache.maven.plugins</groupId>
  350. <artifactId>maven-jxr-plugin</artifactId>
  351. <version>${maven-jxr-plugin-version}</version>
  352. </plugin>
  353. <plugin>
  354. <groupId>org.apache.maven.plugins</groupId>
  355. <artifactId>maven-project-info-reports-plugin</artifactId>
  356. <version>${maven-project-info-reports-plugin-version}</version>
  357. </plugin>
  358. <plugin>
  359. <groupId>org.apache.maven.plugins</groupId>
  360. <artifactId>maven-deploy-plugin</artifactId>
  361. <version>3.0.0-M1</version>
  362. </plugin>
  363. <plugin>
  364. <groupId>org.apache.maven.plugins</groupId>
  365. <artifactId>maven-install-plugin</artifactId>
  366. <version>3.0.0-M1</version>
  367. </plugin>
  368. <plugin>
  369. <groupId>org.apache.maven.plugins</groupId>
  370. <artifactId>maven-compiler-plugin</artifactId>
  371. <version>${maven-compiler-plugin-version}</version>
  372. </plugin>
  373. <plugin>
  374. <groupId>org.apache.maven.plugins</groupId>
  375. <artifactId>maven-resources-plugin</artifactId>
  376. <version>3.1.0</version>
  377. </plugin>
  378. <plugin>
  379. <groupId>org.springframework.boot</groupId>
  380. <artifactId>spring-boot-maven-plugin</artifactId>
  381. <version>2.1.2.RELEASE</version>
  382. </plugin>
  383. </plugins>
  384. </pluginManagement>
  385. <plugins>
  386. <plugin>
  387. <groupId>org.apache.maven.plugins</groupId>
  388. <artifactId>maven-enforcer-plugin</artifactId>
  389. <version>3.0.0-M2</version>
  390. <executions>
  391. <execution>
  392. <id>enforce-maven</id>
  393. <goals>
  394. <goal>enforce</goal>
  395. </goals>
  396. <configuration>
  397. <rules>
  398. <requireMavenVersion>
  399. <version>3.5.2</version>
  400. </requireMavenVersion>
  401. </rules>
  402. </configuration>
  403. </execution>
  404. </executions>
  405. </plugin>
  406. <plugin>
  407. <artifactId>maven-compiler-plugin</artifactId>
  408. </plugin>
  409. <plugin>
  410. <groupId>org.apache.maven.plugins</groupId>
  411. <artifactId>maven-antrun-plugin</artifactId>
  412. <executions>
  413. <execution>
  414. <id>translate-qualifier</id>
  415. <phase>generate-resources</phase>
  416. <configuration>
  417. <target if="${translate-qualifier}">
  418. <copy file="META-INF/MANIFEST.MF" tofile="${bundle-manifest}" overwrite="true"/>
  419. <replace file="${bundle-manifest}">
  420. <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
  421. </replace>
  422. </target>
  423. </configuration>
  424. <goals>
  425. <goal>run</goal>
  426. </goals>
  427. </execution>
  428. </executions>
  429. </plugin>
  430. <!-- Build helper maven plugin sets the parsedVersion.osgiVersion property -->
  431. <plugin>
  432. <groupId>org.codehaus.mojo</groupId>
  433. <artifactId>build-helper-maven-plugin</artifactId>
  434. <executions>
  435. <execution>
  436. <id>set-osgi-version</id>
  437. <phase>validate</phase>
  438. <goals>
  439. <goal>parse-version</goal>
  440. </goals>
  441. </execution>
  442. </executions>
  443. </plugin>
  444. <plugin>
  445. <groupId>org.apache.maven.plugins</groupId>
  446. <artifactId>maven-javadoc-plugin</artifactId>
  447. <configuration>
  448. <additionalJOption>-Xdoclint:-missing</additionalJOption>
  449. <encoding>${project.build.sourceEncoding}</encoding>
  450. <quiet>true</quiet>
  451. <excludePackageNames>org.eclipse.jgit.http.test</excludePackageNames>
  452. <links>
  453. <link>http://docs.oracle.com/javase/8/docs/api</link>
  454. </links>
  455. </configuration>
  456. <executions>
  457. <execution>
  458. <goals>
  459. <goal>jar</goal>
  460. </goals>
  461. </execution>
  462. </executions>
  463. </plugin>
  464. <plugin>
  465. <groupId>org.apache.maven.plugins</groupId>
  466. <artifactId>maven-source-plugin</artifactId>
  467. <inherited>true</inherited>
  468. <executions>
  469. <execution>
  470. <id>attach-sources</id>
  471. <phase>process-classes</phase>
  472. <goals>
  473. <goal>jar</goal>
  474. </goals>
  475. </execution>
  476. </executions>
  477. </plugin>
  478. <plugin>
  479. <groupId>org.jacoco</groupId>
  480. <artifactId>jacoco-maven-plugin</artifactId>
  481. <executions>
  482. <execution>
  483. <id>default-prepare-agent</id>
  484. <goals>
  485. <goal>prepare-agent</goal>
  486. </goals>
  487. <configuration>
  488. <destFile>${sonar.jacoco.reportPath}</destFile>
  489. <includes>
  490. <include>org.eclipse.jgit.*</include>
  491. </includes>
  492. <excludes>
  493. <exclude>**/*Test*.*</exclude>
  494. </excludes>
  495. <append>true</append>
  496. </configuration>
  497. </execution>
  498. <execution>
  499. <id>default-report</id>
  500. <goals>
  501. <goal>report</goal>
  502. </goals>
  503. </execution>
  504. <execution>
  505. <id>default-check</id>
  506. <goals>
  507. <goal>check</goal>
  508. </goals>
  509. <configuration>
  510. <haltOnFailure>false</haltOnFailure>
  511. <rules>
  512. <rule>
  513. <element>BUNDLE</element>
  514. <limits>
  515. <limit>
  516. <counter>INSTRUCTION</counter>
  517. <value>COVEREDRATIO</value>
  518. <minimum>50%</minimum>
  519. </limit>
  520. <limit>
  521. <counter>CLASS</counter>
  522. <value>MISSEDCOUNT</value>
  523. <maximum>10</maximum>
  524. </limit>
  525. </limits>
  526. </rule>
  527. </rules>
  528. </configuration>
  529. </execution>
  530. </executions>
  531. </plugin>
  532. <plugin>
  533. <groupId>org.apache.maven.plugins</groupId>
  534. <artifactId>maven-surefire-report-plugin</artifactId>
  535. </plugin>
  536. </plugins>
  537. </build>
  538. <reporting>
  539. <plugins>
  540. <plugin>
  541. <groupId>org.apache.maven.plugins</groupId>
  542. <artifactId>maven-javadoc-plugin</artifactId>
  543. <version>${maven-javadoc-plugin-version}</version>
  544. <reportSets>
  545. <reportSet>
  546. <reports>
  547. <report>javadoc</report>
  548. </reports>
  549. </reportSet>
  550. <reportSet>
  551. <id>aggregate</id>
  552. <inherited>false</inherited>
  553. <reports>
  554. <report>aggregate</report>
  555. </reports>
  556. </reportSet>
  557. </reportSets>
  558. <configuration>
  559. <additionalJOption>-Xdoclint:-missing</additionalJOption>
  560. </configuration>
  561. </plugin>
  562. <plugin>
  563. <groupId>org.apache.maven.plugins</groupId>
  564. <artifactId>maven-jxr-plugin</artifactId>
  565. <version>${maven-jxr-plugin-version}</version>
  566. </plugin>
  567. <plugin>
  568. <groupId>com.github.spotbugs</groupId>
  569. <artifactId>spotbugs-maven-plugin</artifactId>
  570. <version>${spotbugs-maven-plugin-version}</version>
  571. </plugin>
  572. <plugin>
  573. <groupId>org.apache.maven.plugins</groupId>
  574. <artifactId>maven-surefire-report-plugin</artifactId>
  575. <version>${maven-surefire-version}</version>
  576. <configuration>
  577. <aggregate>true</aggregate>
  578. <alwaysGenerateSurefireReport>false</alwaysGenerateSurefireReport>
  579. <reportsDirectories>
  580. <reportsDirectories>${project.build.directory}/surefire-reports</reportsDirectories>
  581. </reportsDirectories>
  582. </configuration>
  583. </plugin>
  584. <plugin>
  585. <groupId>org.apache.maven.plugins</groupId>
  586. <artifactId>maven-project-info-reports-plugin</artifactId>
  587. <version>${maven-project-info-reports-plugin-version}</version>
  588. <reportSets>
  589. <reportSet>
  590. <reports>
  591. <report>dependencies</report>
  592. <report>dependency-convergence</report>
  593. <report>dependency-management</report>
  594. <report>index</report>
  595. <report>summary</report>
  596. <report>team</report>
  597. <report>mailing-lists</report>
  598. <report>ci-management</report>
  599. <report>issue-management</report>
  600. <report>licenses</report>
  601. <report>scm</report>
  602. </reports>
  603. </reportSet>
  604. </reportSets>
  605. </plugin>
  606. <plugin>
  607. <groupId>org.jacoco</groupId>
  608. <artifactId>jacoco-maven-plugin</artifactId>
  609. <reportSets>
  610. <reportSet>
  611. <reports>
  612. <report>report</report>
  613. </reports>
  614. </reportSet>
  615. <reportSet>
  616. <id>aggregate</id>
  617. <inherited>false</inherited>
  618. <reports>
  619. <report>report-aggregate</report>
  620. </reports>
  621. </reportSet>
  622. </reportSets>
  623. </plugin>
  624. </plugins>
  625. </reporting>
  626. <dependencyManagement>
  627. <dependencies>
  628. <dependency>
  629. <groupId>com.jcraft</groupId>
  630. <artifactId>jsch</artifactId>
  631. <version>${jsch-version}</version>
  632. </dependency>
  633. <dependency>
  634. <groupId>com.jcraft</groupId>
  635. <artifactId>jzlib</artifactId>
  636. <version>${jzlib-version}</version>
  637. </dependency>
  638. <dependency>
  639. <groupId>com.googlecode.javaewah</groupId>
  640. <artifactId>JavaEWAH</artifactId>
  641. <version>${javaewah-version}</version>
  642. </dependency>
  643. <dependency>
  644. <groupId>args4j</groupId>
  645. <artifactId>args4j</artifactId>
  646. <version>${args4j-version}</version>
  647. </dependency>
  648. <dependency>
  649. <groupId>junit</groupId>
  650. <artifactId>junit</artifactId>
  651. <version>${junit-version}</version>
  652. </dependency>
  653. <dependency>
  654. <groupId>javax.servlet</groupId>
  655. <artifactId>javax.servlet-api</artifactId>
  656. <version>${servlet-api-version}</version>
  657. </dependency>
  658. <dependency>
  659. <groupId>org.apache.commons</groupId>
  660. <artifactId>commons-compress</artifactId>
  661. <version>${commons-compress-version}</version>
  662. </dependency>
  663. <dependency>
  664. <groupId>org.tukaani</groupId>
  665. <artifactId>xz</artifactId>
  666. <version>1.8</version>
  667. <optional>true</optional>
  668. </dependency>
  669. <dependency>
  670. <groupId>org.eclipse.jetty</groupId>
  671. <artifactId>jetty-servlet</artifactId>
  672. <version>${jetty-version}</version>
  673. </dependency>
  674. <dependency>
  675. <groupId>org.osgi</groupId>
  676. <artifactId>org.osgi.core</artifactId>
  677. <version>${osgi-core-version}</version>
  678. </dependency>
  679. <dependency>
  680. <groupId>org.apache.httpcomponents</groupId>
  681. <artifactId>httpclient</artifactId>
  682. <version>${httpclient-version}</version>
  683. </dependency>
  684. <dependency>
  685. <groupId>org.apache.httpcomponents</groupId>
  686. <artifactId>httpcore</artifactId>
  687. <version>${httpcore-version}</version>
  688. </dependency>
  689. <dependency>
  690. <groupId>org.slf4j</groupId>
  691. <artifactId>slf4j-api</artifactId>
  692. <version>${slf4j-version}</version>
  693. </dependency>
  694. <dependency>
  695. <groupId>org.slf4j</groupId>
  696. <artifactId>slf4j-log4j12</artifactId>
  697. <version>${slf4j-version}</version>
  698. </dependency>
  699. <dependency>
  700. <groupId>log4j</groupId>
  701. <artifactId>log4j</artifactId>
  702. <version>${log4j-version}</version>
  703. <exclusions>
  704. <exclusion>
  705. <groupId>javax.mail</groupId>
  706. <artifactId>mail</artifactId>
  707. </exclusion>
  708. <exclusion>
  709. <groupId>javax.jms</groupId>
  710. <artifactId>jms</artifactId>
  711. </exclusion>
  712. <exclusion>
  713. <groupId>com.sun.jdmk</groupId>
  714. <artifactId>jmxtools</artifactId>
  715. </exclusion>
  716. <exclusion>
  717. <groupId>com.sun.jmx</groupId>
  718. <artifactId>jmxri</artifactId>
  719. </exclusion>
  720. </exclusions>
  721. </dependency>
  722. <dependency>
  723. <groupId>com.google.code.gson</groupId>
  724. <artifactId>gson</artifactId>
  725. <version>${gson-version}</version>
  726. </dependency>
  727. <dependency>
  728. <groupId>org.bouncycastle</groupId>
  729. <artifactId>bcpg-jdk15on</artifactId>
  730. <version>${bouncycastle-version}</version>
  731. </dependency>
  732. <dependency>
  733. <groupId>org.bouncycastle</groupId>
  734. <artifactId>bcprov-jdk15on</artifactId>
  735. <version>${bouncycastle-version}</version>
  736. </dependency>
  737. <dependency>
  738. <groupId>org.bouncycastle</groupId>
  739. <artifactId>bcpkix-jdk15on</artifactId>
  740. <version>${bouncycastle-version}</version>
  741. </dependency>
  742. </dependencies>
  743. </dependencyManagement>
  744. <distributionManagement>
  745. <repository>
  746. <id>repo.eclipse.org</id>
  747. <name>JGit Maven Repository - Releases</name>
  748. <url>https://repo.eclipse.org/content/repositories/jgit-releases/</url>
  749. </repository>
  750. <snapshotRepository>
  751. <id>repo.eclipse.org</id>
  752. <name>JGit Maven Repository - Snapshots</name>
  753. <url>https://repo.eclipse.org/content/repositories/jgit-snapshots/</url>
  754. <uniqueVersion>true</uniqueVersion>
  755. </snapshotRepository>
  756. <site>
  757. <id>jgit.website</id>
  758. <name>JGit Website</name>
  759. <url>${jgit.website.url}</url>
  760. </site>
  761. </distributionManagement>
  762. <profiles>
  763. <profile>
  764. <id>javac</id>
  765. <build>
  766. <plugins>
  767. <plugin>
  768. <artifactId>maven-compiler-plugin</artifactId>
  769. <configuration>
  770. <encoding>UTF-8</encoding>
  771. <source>1.8</source>
  772. <target>1.8</target>
  773. </configuration>
  774. <executions>
  775. <execution>
  776. <id>default-compile</id>
  777. <phase>compile</phase>
  778. <goals>
  779. <goal>compile</goal>
  780. </goals>
  781. <configuration>
  782. <includes>
  783. <include>org/eclipse/jgit/transport/InsecureCipherFactory.java</include>
  784. </includes>
  785. </configuration>
  786. </execution>
  787. <execution>
  788. <id>compile-with-errorprone</id>
  789. <phase>compile</phase>
  790. <goals>
  791. <goal>compile</goal>
  792. </goals>
  793. <configuration>
  794. <compilerId>javac-with-errorprone</compilerId>
  795. <forceJavacCompilerUse>true</forceJavacCompilerUse>
  796. <compilerArgs>
  797. <arg>-Xep:ExpectedExceptionChecker:ERROR</arg>
  798. </compilerArgs>
  799. <excludes>
  800. <exclude>org/eclipse/jgit/transport/InsecureCipherFactory.java</exclude>
  801. </excludes>
  802. </configuration>
  803. </execution>
  804. </executions>
  805. <dependencies>
  806. <dependency>
  807. <groupId>org.codehaus.plexus</groupId>
  808. <artifactId>plexus-compiler-javac</artifactId>
  809. <version>2.8.5</version>
  810. </dependency>
  811. <dependency>
  812. <groupId>org.codehaus.plexus</groupId>
  813. <artifactId>plexus-compiler-javac-errorprone</artifactId>
  814. <version>2.8.5</version>
  815. </dependency>
  816. <!-- override plexus-compiler-javac-errorprone's dependency on
  817. Error Prone with the latest version -->
  818. <dependency>
  819. <groupId>com.google.errorprone</groupId>
  820. <artifactId>error_prone_core</artifactId>
  821. <version>2.3.3</version>
  822. </dependency>
  823. </dependencies>
  824. </plugin>
  825. </plugins>
  826. </build>
  827. </profile>
  828. <profile>
  829. <id>ecj</id>
  830. <activation>
  831. <activeByDefault>true</activeByDefault>
  832. </activation>
  833. <build>
  834. <plugins>
  835. <plugin>
  836. <artifactId>maven-compiler-plugin</artifactId>
  837. <configuration>
  838. <compilerId>eclipse</compilerId>
  839. <encoding>UTF-8</encoding>
  840. <source>1.8</source>
  841. <target>1.8</target>
  842. <!-- Passing arguments is a trainwreck, see https://issues.apache.org/jira/browse/MCOMPILER-123 -->
  843. <compilerArguments>
  844. <properties>${project.basedir}/.settings/org.eclipse.jdt.core.prefs</properties>
  845. </compilerArguments>
  846. <showWarnings>true</showWarnings>
  847. <showDeprecation>true</showDeprecation>
  848. </configuration>
  849. <dependencies>
  850. <dependency>
  851. <groupId>org.codehaus.plexus</groupId>
  852. <artifactId>plexus-compiler-eclipse</artifactId>
  853. <version>2.8.5</version>
  854. </dependency>
  855. <dependency>
  856. <groupId>org.eclipse.jdt</groupId>
  857. <artifactId>ecj</artifactId>
  858. <version>3.17.0</version>
  859. </dependency>
  860. </dependencies>
  861. </plugin>
  862. </plugins>
  863. </build>
  864. </profile>
  865. <profile>
  866. <id>static-checks</id>
  867. <build>
  868. <plugins>
  869. <plugin>
  870. <groupId>com.github.spotbugs</groupId>
  871. <artifactId>spotbugs-maven-plugin</artifactId>
  872. </plugin>
  873. <plugin>
  874. <groupId>org.apache.maven.plugins</groupId>
  875. <artifactId>maven-pmd-plugin</artifactId>
  876. </plugin>
  877. </plugins>
  878. </build>
  879. </profile>
  880. <profile>
  881. <id>eclipse-sign</id>
  882. <build>
  883. <plugins>
  884. <plugin>
  885. <groupId>org.eclipse.tycho.extras</groupId>
  886. <artifactId>tycho-pack200a-plugin</artifactId>
  887. <!-- TODO remove this configuration when https://git.eclipse.org/r/#/c/16027 is available -->
  888. <configuration>
  889. <supportedProjectTypes>
  890. <supportedProjectType>jar</supportedProjectType>
  891. </supportedProjectTypes>
  892. </configuration>
  893. <executions>
  894. <execution>
  895. <id>pack200-normalize</id>
  896. <goals>
  897. <goal>normalize</goal>
  898. </goals>
  899. <phase>verify</phase>
  900. </execution>
  901. </executions>
  902. </plugin>
  903. <plugin>
  904. <groupId>org.eclipse.cbi.maven.plugins</groupId>
  905. <artifactId>eclipse-jarsigner-plugin</artifactId>
  906. <executions>
  907. <execution>
  908. <id>sign</id>
  909. <phase>verify</phase>
  910. <goals>
  911. <goal>sign</goal>
  912. </goals>
  913. </execution>
  914. </executions>
  915. </plugin>
  916. <plugin>
  917. <groupId>org.eclipse.tycho.extras</groupId>
  918. <artifactId>tycho-pack200b-plugin</artifactId>
  919. <!-- TODO remove this configuration when https://git.eclipse.org/r/#/c/16027 is available -->
  920. <configuration>
  921. <supportedProjectTypes>
  922. <supportedProjectType>jar</supportedProjectType>
  923. </supportedProjectTypes>
  924. </configuration>
  925. <executions>
  926. <execution>
  927. <id>pack200-pack</id>
  928. <goals>
  929. <goal>pack</goal>
  930. </goals>
  931. <phase>verify</phase>
  932. </execution>
  933. </executions>
  934. </plugin>
  935. </plugins>
  936. </build>
  937. </profile>
  938. <profile>
  939. <id>build-server</id>
  940. <properties>
  941. <jgit.website.url>file:///home/data/httpd/download.eclipse.org/jgit/site/${project.version}/</jgit.website.url>
  942. </properties>
  943. </profile>
  944. </profiles>
  945. <modules>
  946. <module>org.eclipse.jgit</module>
  947. <module>org.eclipse.jgit.ant</module>
  948. <module>org.eclipse.jgit.archive</module>
  949. <module>org.eclipse.jgit.ui</module>
  950. <module>org.eclipse.jgit.http.apache</module>
  951. <module>org.eclipse.jgit.http.server</module>
  952. <module>org.eclipse.jgit.ssh.apache</module>
  953. <module>org.eclipse.jgit.pgm</module>
  954. <module>org.eclipse.jgit.lfs</module>
  955. <module>org.eclipse.jgit.lfs.server</module>
  956. <module>org.eclipse.jgit.junit</module>
  957. <module>org.eclipse.jgit.junit.http</module>
  958. <module>org.eclipse.jgit.junit.ssh</module>
  959. <module>org.eclipse.jgit.test</module>
  960. <module>org.eclipse.jgit.ant.test</module>
  961. <module>org.eclipse.jgit.http.test</module>
  962. <module>org.eclipse.jgit.pgm.test</module>
  963. <module>org.eclipse.jgit.lfs.test</module>
  964. <module>org.eclipse.jgit.lfs.server.test</module>
  965. <module>org.eclipse.jgit.ssh.apache.test</module>
  966. <module>org.eclipse.jgit.coverage</module>
  967. <module>org.eclipse.jgit.benchmarks</module>
  968. </modules>
  969. </project>