blob: 041c46db7c5f58caf20127b09d605b9dc2ae4bc4 [file] [log] [blame]
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Matthias Sohn5c5f7c62020-01-04 00:50:50 +01003 Copyright (C) 2009-2010, Google Inc. and others
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -07004
Matthias Sohn5c5f7c62020-01-04 00:50:50 +01005 This program and the accompanying materials are made available under the
6 terms of the Eclipse Distribution License v. 1.0 which is available at
7 http://www.eclipse.org/org/documents/edl-v10.php.
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -07008
Matthias Sohn5c5f7c62020-01-04 00:50:50 +01009 SPDX-License-Identifier: BSD-3-Clause
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -070010-->
11
12<project xmlns="http://maven.apache.org/POM/4.0.0"
13 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
15 <modelVersion>4.0.0</modelVersion>
16
17 <parent>
18 <groupId>org.eclipse.jgit</groupId>
Shawn O. Pearcefc5fc702009-12-28 12:01:19 -080019 <artifactId>org.eclipse.jgit-parent</artifactId>
Matthias Sohn797d3d42025-12-02 17:54:27 +010020 <version>7.6.0-SNAPSHOT</version>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -070021 </parent>
22
23 <artifactId>org.eclipse.jgit.pgm</artifactId>
24 <name>JGit - Command Line Interface</name>
25
26 <description>
27 Command line client tools built on top of JGit.
28 </description>
29
Matthias Sohn49740902012-06-12 00:17:55 +020030 <properties>
31 <translate-qualifier/>
32 <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
33 </properties>
34
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -070035 <dependencies>
36 <dependency>
37 <groupId>args4j</groupId>
38 <artifactId>args4j</artifactId>
39 </dependency>
40
41 <dependency>
Jonathan Nieder1547eaf2012-12-03 09:55:02 -080042 <groupId>org.apache.commons</groupId>
43 <artifactId>commons-compress</artifactId>
44 </dependency>
45
46 <dependency>
Jonathan Nieder56276d02013-05-24 17:30:18 -070047 <groupId>org.eclipse.jgit</groupId>
48 <artifactId>org.eclipse.jgit.archive</artifactId>
49 <version>${project.version}</version>
Shawn O. Pearcefc5fc702009-12-28 12:01:19 -080050 </dependency>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -070051
52 <dependency>
53 <groupId>org.eclipse.jgit</groupId>
54 <artifactId>org.eclipse.jgit</artifactId>
Shawn O. Pearce1e48c332010-01-28 11:13:11 -080055 <version>${project.version}</version>
56 </dependency>
57
58 <dependency>
59 <groupId>org.eclipse.jgit</groupId>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -070060 <artifactId>org.eclipse.jgit.ui</artifactId>
Shawn O. Pearcefc5fc702009-12-28 12:01:19 -080061 <version>${project.version}</version>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -070062 </dependency>
Matthias Sohndd453f42015-03-09 15:57:48 -070063
64 <dependency>
Matthias Sohn2647d022015-11-27 11:46:21 +010065 <groupId>org.eclipse.jgit</groupId>
Matthias Sohn77848d62020-04-27 00:58:28 +020066 <artifactId>org.eclipse.jgit.gpg.bc</artifactId>
67 <version>${project.version}</version>
68 </dependency>
69
70 <dependency>
71 <groupId>org.eclipse.jgit</groupId>
Matthias Sohn2647d022015-11-27 11:46:21 +010072 <artifactId>org.eclipse.jgit.http.apache</artifactId>
73 <version>${project.version}</version>
74 </dependency>
75
76 <dependency>
Thomas Wolfa1511902018-10-18 23:34:04 +020077 <groupId>org.eclipse.jgit</groupId>
78 <artifactId>org.eclipse.jgit.ssh.apache</artifactId>
79 <version>${project.version}</version>
80 </dependency>
81
82 <dependency>
Matthias Sohn8d2d6832020-04-24 22:41:39 +020083 <groupId>org.eclipse.jgit</groupId>
Thomas Wolf634302d2021-11-02 18:48:25 +010084 <artifactId>org.eclipse.jgit.ssh.apache.agent</artifactId>
85 <version>${project.version}</version>
86 </dependency>
87
88 <dependency>
89 <groupId>org.eclipse.jgit</groupId>
Matthias Sohn8d2d6832020-04-24 22:41:39 +020090 <artifactId>org.eclipse.jgit.ssh.jsch</artifactId>
91 <version>${project.version}</version>
92 </dependency>
93
94 <dependency>
Matthias Sohn2647d022015-11-27 11:46:21 +010095 <groupId>org.apache.httpcomponents</groupId>
96 <artifactId>httpclient</artifactId>
97 </dependency>
98
99 <dependency>
Matthias Sohndd453f42015-03-09 15:57:48 -0700100 <groupId>org.slf4j</groupId>
101 <artifactId>slf4j-api</artifactId>
Matthias Sohndd453f42015-03-09 15:57:48 -0700102 </dependency>
103
104 <dependency>
105 <groupId>org.slf4j</groupId>
Matthias Sohn486afbc2021-12-16 18:42:45 +0100106 <artifactId>slf4j-simple</artifactId>
Matthias Sohndd453f42015-03-09 15:57:48 -0700107 </dependency>
Matthias Sohn3bae5242015-12-22 16:11:43 +0100108
109 <dependency>
David Ostrovsky026d46d2024-05-05 10:56:32 +0200110 <groupId>org.eclipse.jetty.ee10</groupId>
111 <artifactId>jetty-ee10-servlet</artifactId>
Matthias Sohn3bae5242015-12-22 16:11:43 +0100112 </dependency>
113
114 <dependency>
Matthias Sohn3bae5242015-12-22 16:11:43 +0100115 <groupId>org.eclipse.jgit</groupId>
116 <artifactId>org.eclipse.jgit.lfs</artifactId>
117 <version>${project.version}</version>
118 </dependency>
119
120 <dependency>
121 <groupId>org.eclipse.jgit</groupId>
122 <artifactId>org.eclipse.jgit.lfs.server</artifactId>
123 <version>${project.version}</version>
124 </dependency>
Matthias Sohn76b37812019-06-16 20:45:47 +0200125
126 <dependency>
127 <groupId>org.tukaani</groupId>
128 <artifactId>xz</artifactId>
129 <optional>true</optional>
130 </dependency>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700131 </dependencies>
132
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700133 <build>
134 <sourceDirectory>src/</sourceDirectory>
135
136 <resources>
137 <resource>
138 <directory>.</directory>
139 <includes>
Matthias Sohn49740902012-06-12 00:17:55 +0200140 <include>plugin.properties</include>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700141 <include>META-INF/services/org.eclipse.jgit.pgm.TextBuiltin</include>
Matthias Sohne1af16a2011-06-08 22:42:20 +0200142 <include>about.html</include>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700143 </includes>
144 </resource>
Sasa Zivkovf3d8a8e2010-05-19 16:59:28 +0200145 <resource>
146 <directory>resources/</directory>
147 </resource>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700148 </resources>
149
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700150 <plugins>
151 <plugin>
Matthias Sohn49740902012-06-12 00:17:55 +0200152 <artifactId>maven-jar-plugin</artifactId>
153 <configuration>
154 <archive>
155 <manifestFile>${bundle-manifest}</manifestFile>
156 </archive>
157 </configuration>
158 </plugin>
159
160 <plugin>
Medha Bhargav Prabhala137e91a2018-12-03 20:13:27 +0100161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-maven-plugin</artifactId>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700163 <executions>
164 <execution>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700165 <goals>
Medha Bhargav Prabhala137e91a2018-12-03 20:13:27 +0100166 <goal>repackage</goal>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700167 </goals>
168 <configuration>
169 <finalName>jgit-cli</finalName>
Medha Bhargav Prabhala137e91a2018-12-03 20:13:27 +0100170 <attach>false</attach>
171 <mainClass>org.eclipse.jgit.pgm.Main</mainClass>
172 <executable>true</executable>
173 <embeddedLaunchScript>jgit.sh</embeddedLaunchScript>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700174 </configuration>
175 </execution>
176 </executions>
177 </plugin>
178
179 <plugin>
180 <groupId>org.apache.maven.plugins</groupId>
181 <artifactId>maven-antrun-plugin</artifactId>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700182 <executions>
183 <execution>
184 <id>create_jgit</id>
185 <phase>package</phase>
186 <configuration>
Alexander Kurtakov5c788e22014-12-09 14:48:42 +0200187 <target>
Medha Bhargav Prabhala137e91a2018-12-03 20:13:27 +0100188 <move
189 file="${basedir}/target/jgit-cli.jar"
190 force="yes"
191 tofile="${basedir}/target/jgit" />
192 <chmod
193 file="${basedir}/target/jgit"
194 perm="a+x" />
Alexander Kurtakov5c788e22014-12-09 14:48:42 +0200195 </target>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700196 </configuration>
197 <goals>
198 <goal>run</goal>
199 </goals>
200 </execution>
Matthias Sohn49740902012-06-12 00:17:55 +0200201 <execution>
202 <id>translate-source-qualifier</id>
203 <phase>generate-resources</phase>
204 <configuration>
Alexander Kurtakov5c788e22014-12-09 14:48:42 +0200205 <target>
Matthias Sohn49740902012-06-12 00:17:55 +0200206 <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
207 <replace file="${source-bundle-manifest}">
Matthias Sohn60073712023-10-06 01:10:40 +0200208 <replacefilter token=".qualifier" value=".${commit.time.version}"/>
Matthias Sohn49740902012-06-12 00:17:55 +0200209 </replace>
Alexander Kurtakov5c788e22014-12-09 14:48:42 +0200210 </target>
Matthias Sohn49740902012-06-12 00:17:55 +0200211 </configuration>
212 <goals>
213 <goal>run</goal>
214 </goals>
215 </execution>
216 </executions>
217 </plugin>
218
219 <plugin>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-source-plugin</artifactId>
222 <inherited>true</inherited>
223 <executions>
224 <execution>
225 <id>attach-sources</id>
226 <phase>process-classes</phase>
227 <goals>
228 <goal>jar</goal>
229 </goals>
230 <configuration>
231 <archive>
232 <manifestFile>${source-bundle-manifest}</manifestFile>
233 </archive>
234 </configuration>
235 </execution>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700236 </executions>
237 </plugin>
238
239 <plugin>
240 <groupId>org.codehaus.mojo</groupId>
241 <artifactId>build-helper-maven-plugin</artifactId>
Shawn O. Pearcedad52ba2009-10-31 18:07:26 -0700242 <executions>
243 <execution>
244 <id>attach_jgit</id>
245 <phase>package</phase>
246 <goals>
247 <goal>attach-artifact</goal>
248 </goals>
249 <configuration>
250 <artifacts>
251 <artifact>
252 <file>${basedir}/target/jgit</file>
253 <type>sh</type>
254 </artifact>
255 </artifacts>
256 </configuration>
257 </execution>
258 </executions>
259 </plugin>
260 </plugins>
261 </build>
262</project>