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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2009-2010, Google Inc. 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/maven-v4_0_0.xsd">
  12. <modelVersion>4.0.0</modelVersion>
  13. <parent>
  14. <groupId>org.eclipse.jgit</groupId>
  15. <artifactId>org.eclipse.jgit-parent</artifactId>
  16. <version>5.13.0-SNAPSHOT</version>
  17. </parent>
  18. <artifactId>org.eclipse.jgit.pgm</artifactId>
  19. <name>JGit - Command Line Interface</name>
  20. <description>
  21. Command line client tools built on top of JGit.
  22. </description>
  23. <properties>
  24. <translate-qualifier/>
  25. <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>args4j</groupId>
  30. <artifactId>args4j</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.apache.commons</groupId>
  34. <artifactId>commons-compress</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.eclipse.jgit</groupId>
  38. <artifactId>org.eclipse.jgit.archive</artifactId>
  39. <version>${project.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.eclipse.jgit</groupId>
  43. <artifactId>org.eclipse.jgit</artifactId>
  44. <version>${project.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.eclipse.jgit</groupId>
  48. <artifactId>org.eclipse.jgit.ui</artifactId>
  49. <version>${project.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.eclipse.jgit</groupId>
  53. <artifactId>org.eclipse.jgit.gpg.bc</artifactId>
  54. <version>${project.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.eclipse.jgit</groupId>
  58. <artifactId>org.eclipse.jgit.http.apache</artifactId>
  59. <version>${project.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.eclipse.jgit</groupId>
  63. <artifactId>org.eclipse.jgit.ssh.apache</artifactId>
  64. <version>${project.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.eclipse.jgit</groupId>
  68. <artifactId>org.eclipse.jgit.ssh.jsch</artifactId>
  69. <version>${project.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.httpcomponents</groupId>
  73. <artifactId>httpclient</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.slf4j</groupId>
  77. <artifactId>slf4j-api</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.slf4j</groupId>
  81. <artifactId>slf4j-log4j12</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>log4j</groupId>
  85. <artifactId>log4j</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.eclipse.jetty</groupId>
  89. <artifactId>jetty-servlet</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.eclipse.jgit</groupId>
  93. <artifactId>org.eclipse.jgit.lfs</artifactId>
  94. <version>${project.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.eclipse.jgit</groupId>
  98. <artifactId>org.eclipse.jgit.lfs.server</artifactId>
  99. <version>${project.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.tukaani</groupId>
  103. <artifactId>xz</artifactId>
  104. <optional>true</optional>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <sourceDirectory>src/</sourceDirectory>
  109. <resources>
  110. <resource>
  111. <directory>.</directory>
  112. <includes>
  113. <include>plugin.properties</include>
  114. <include>META-INF/services/org.eclipse.jgit.pgm.TextBuiltin</include>
  115. <include>about.html</include>
  116. </includes>
  117. </resource>
  118. <resource>
  119. <directory>resources/</directory>
  120. </resource>
  121. </resources>
  122. <plugins>
  123. <plugin>
  124. <artifactId>maven-jar-plugin</artifactId>
  125. <configuration>
  126. <archive>
  127. <manifestFile>${bundle-manifest}</manifestFile>
  128. </archive>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-maven-plugin</artifactId>
  134. <executions>
  135. <execution>
  136. <goals>
  137. <goal>repackage</goal>
  138. </goals>
  139. <configuration>
  140. <finalName>jgit-cli</finalName>
  141. <attach>false</attach>
  142. <mainClass>org.eclipse.jgit.pgm.Main</mainClass>
  143. <executable>true</executable>
  144. <embeddedLaunchScript>jgit.sh</embeddedLaunchScript>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-antrun-plugin</artifactId>
  152. <executions>
  153. <execution>
  154. <id>create_jgit</id>
  155. <phase>package</phase>
  156. <configuration>
  157. <target>
  158. <move
  159. file="${basedir}/target/jgit-cli.jar"
  160. force="yes"
  161. tofile="${basedir}/target/jgit" />
  162. <chmod
  163. file="${basedir}/target/jgit"
  164. perm="a+x" />
  165. </target>
  166. </configuration>
  167. <goals>
  168. <goal>run</goal>
  169. </goals>
  170. </execution>
  171. <execution>
  172. <id>translate-source-qualifier</id>
  173. <phase>generate-resources</phase>
  174. <configuration>
  175. <target>
  176. <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
  177. <replace file="${source-bundle-manifest}">
  178. <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
  179. </replace>
  180. </target>
  181. </configuration>
  182. <goals>
  183. <goal>run</goal>
  184. </goals>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-source-plugin</artifactId>
  191. <inherited>true</inherited>
  192. <executions>
  193. <execution>
  194. <id>attach-sources</id>
  195. <phase>process-classes</phase>
  196. <goals>
  197. <goal>jar</goal>
  198. </goals>
  199. <configuration>
  200. <archive>
  201. <manifestFile>${source-bundle-manifest}</manifestFile>
  202. </archive>
  203. </configuration>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. <plugin>
  208. <groupId>org.codehaus.mojo</groupId>
  209. <artifactId>build-helper-maven-plugin</artifactId>
  210. <executions>
  211. <execution>
  212. <id>attach_jgit</id>
  213. <phase>package</phase>
  214. <goals>
  215. <goal>attach-artifact</goal>
  216. </goals>
  217. <configuration>
  218. <artifacts>
  219. <artifact>
  220. <file>${basedir}/target/jgit</file>
  221. <type>sh</type>
  222. </artifact>
  223. </artifacts>
  224. </configuration>
  225. </execution>
  226. </executions>
  227. </plugin>
  228. </plugins>
  229. </build>
  230. </project>