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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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>6.0.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.http.apache</artifactId>
  54. <version>${project.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.eclipse.jgit</groupId>
  58. <artifactId>org.eclipse.jgit.ssh.apache</artifactId>
  59. <version>${project.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.httpcomponents</groupId>
  63. <artifactId>httpclient</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.slf4j</groupId>
  67. <artifactId>slf4j-api</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.slf4j</groupId>
  71. <artifactId>slf4j-log4j12</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>log4j</groupId>
  75. <artifactId>log4j</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.eclipse.jetty</groupId>
  79. <artifactId>jetty-servlet</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.eclipse.jgit</groupId>
  83. <artifactId>org.eclipse.jgit.lfs</artifactId>
  84. <version>${project.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.eclipse.jgit</groupId>
  88. <artifactId>org.eclipse.jgit.lfs.server</artifactId>
  89. <version>${project.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.tukaani</groupId>
  93. <artifactId>xz</artifactId>
  94. <optional>true</optional>
  95. </dependency>
  96. </dependencies>
  97. <build>
  98. <sourceDirectory>src/</sourceDirectory>
  99. <resources>
  100. <resource>
  101. <directory>.</directory>
  102. <includes>
  103. <include>plugin.properties</include>
  104. <include>META-INF/services/org.eclipse.jgit.pgm.TextBuiltin</include>
  105. <include>about.html</include>
  106. </includes>
  107. </resource>
  108. <resource>
  109. <directory>resources/</directory>
  110. </resource>
  111. </resources>
  112. <plugins>
  113. <plugin>
  114. <artifactId>maven-jar-plugin</artifactId>
  115. <configuration>
  116. <archive>
  117. <manifestFile>${bundle-manifest}</manifestFile>
  118. </archive>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. <executions>
  125. <execution>
  126. <goals>
  127. <goal>repackage</goal>
  128. </goals>
  129. <configuration>
  130. <finalName>jgit-cli</finalName>
  131. <attach>false</attach>
  132. <mainClass>org.eclipse.jgit.pgm.Main</mainClass>
  133. <executable>true</executable>
  134. <embeddedLaunchScript>jgit.sh</embeddedLaunchScript>
  135. </configuration>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-antrun-plugin</artifactId>
  142. <executions>
  143. <execution>
  144. <id>create_jgit</id>
  145. <phase>package</phase>
  146. <configuration>
  147. <target>
  148. <move
  149. file="${basedir}/target/jgit-cli.jar"
  150. force="yes"
  151. tofile="${basedir}/target/jgit" />
  152. <chmod
  153. file="${basedir}/target/jgit"
  154. perm="a+x" />
  155. </target>
  156. </configuration>
  157. <goals>
  158. <goal>run</goal>
  159. </goals>
  160. </execution>
  161. <execution>
  162. <id>translate-source-qualifier</id>
  163. <phase>generate-resources</phase>
  164. <configuration>
  165. <target>
  166. <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
  167. <replace file="${source-bundle-manifest}">
  168. <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
  169. </replace>
  170. </target>
  171. </configuration>
  172. <goals>
  173. <goal>run</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-source-plugin</artifactId>
  181. <inherited>true</inherited>
  182. <executions>
  183. <execution>
  184. <id>attach-sources</id>
  185. <phase>process-classes</phase>
  186. <goals>
  187. <goal>jar</goal>
  188. </goals>
  189. <configuration>
  190. <archive>
  191. <manifestFile>${source-bundle-manifest}</manifestFile>
  192. </archive>
  193. </configuration>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.codehaus.mojo</groupId>
  199. <artifactId>build-helper-maven-plugin</artifactId>
  200. <executions>
  201. <execution>
  202. <id>attach_jgit</id>
  203. <phase>package</phase>
  204. <goals>
  205. <goal>attach-artifact</goal>
  206. </goals>
  207. <configuration>
  208. <artifacts>
  209. <artifact>
  210. <file>${basedir}/target/jgit</file>
  211. <type>sh</type>
  212. </artifact>
  213. </artifacts>
  214. </configuration>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. </plugins>
  219. </build>
  220. </project>