| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| Matthias Sohn | 5c5f7c6 | 2020-01-04 00:50:50 +0100 | [diff] [blame] | 3 | Copyright (C) 2009-2010, Google Inc. and others |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 4 | |
| Matthias Sohn | 5c5f7c6 | 2020-01-04 00:50:50 +0100 | [diff] [blame] | 5 | 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. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 8 | |
| Matthias Sohn | 5c5f7c6 | 2020-01-04 00:50:50 +0100 | [diff] [blame] | 9 | SPDX-License-Identifier: BSD-3-Clause |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 10 | --> |
| 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. Pearce | fc5fc70 | 2009-12-28 12:01:19 -0800 | [diff] [blame] | 19 | <artifactId>org.eclipse.jgit-parent</artifactId> |
| Matthias Sohn | 797d3d4 | 2025-12-02 17:54:27 +0100 | [diff] [blame] | 20 | <version>7.6.0-SNAPSHOT</version> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 21 | </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 Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 30 | <properties> |
| 31 | <translate-qualifier/> |
| 32 | <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest> |
| 33 | </properties> |
| 34 | |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 35 | <dependencies> |
| 36 | <dependency> |
| 37 | <groupId>args4j</groupId> |
| 38 | <artifactId>args4j</artifactId> |
| 39 | </dependency> |
| 40 | |
| 41 | <dependency> |
| Jonathan Nieder | 1547eaf | 2012-12-03 09:55:02 -0800 | [diff] [blame] | 42 | <groupId>org.apache.commons</groupId> |
| 43 | <artifactId>commons-compress</artifactId> |
| 44 | </dependency> |
| 45 | |
| 46 | <dependency> |
| Jonathan Nieder | 56276d0 | 2013-05-24 17:30:18 -0700 | [diff] [blame] | 47 | <groupId>org.eclipse.jgit</groupId> |
| 48 | <artifactId>org.eclipse.jgit.archive</artifactId> |
| 49 | <version>${project.version}</version> |
| Shawn O. Pearce | fc5fc70 | 2009-12-28 12:01:19 -0800 | [diff] [blame] | 50 | </dependency> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 51 | |
| 52 | <dependency> |
| 53 | <groupId>org.eclipse.jgit</groupId> |
| 54 | <artifactId>org.eclipse.jgit</artifactId> |
| Shawn O. Pearce | 1e48c33 | 2010-01-28 11:13:11 -0800 | [diff] [blame] | 55 | <version>${project.version}</version> |
| 56 | </dependency> |
| 57 | |
| 58 | <dependency> |
| 59 | <groupId>org.eclipse.jgit</groupId> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 60 | <artifactId>org.eclipse.jgit.ui</artifactId> |
| Shawn O. Pearce | fc5fc70 | 2009-12-28 12:01:19 -0800 | [diff] [blame] | 61 | <version>${project.version}</version> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 62 | </dependency> |
| Matthias Sohn | dd453f4 | 2015-03-09 15:57:48 -0700 | [diff] [blame] | 63 | |
| 64 | <dependency> |
| Matthias Sohn | 2647d02 | 2015-11-27 11:46:21 +0100 | [diff] [blame] | 65 | <groupId>org.eclipse.jgit</groupId> |
| Matthias Sohn | 77848d6 | 2020-04-27 00:58:28 +0200 | [diff] [blame] | 66 | <artifactId>org.eclipse.jgit.gpg.bc</artifactId> |
| 67 | <version>${project.version}</version> |
| 68 | </dependency> |
| 69 | |
| 70 | <dependency> |
| 71 | <groupId>org.eclipse.jgit</groupId> |
| Matthias Sohn | 2647d02 | 2015-11-27 11:46:21 +0100 | [diff] [blame] | 72 | <artifactId>org.eclipse.jgit.http.apache</artifactId> |
| 73 | <version>${project.version}</version> |
| 74 | </dependency> |
| 75 | |
| 76 | <dependency> |
| Thomas Wolf | a151190 | 2018-10-18 23:34:04 +0200 | [diff] [blame] | 77 | <groupId>org.eclipse.jgit</groupId> |
| 78 | <artifactId>org.eclipse.jgit.ssh.apache</artifactId> |
| 79 | <version>${project.version}</version> |
| 80 | </dependency> |
| 81 | |
| 82 | <dependency> |
| Matthias Sohn | 8d2d683 | 2020-04-24 22:41:39 +0200 | [diff] [blame] | 83 | <groupId>org.eclipse.jgit</groupId> |
| Thomas Wolf | 634302d | 2021-11-02 18:48:25 +0100 | [diff] [blame] | 84 | <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 Sohn | 8d2d683 | 2020-04-24 22:41:39 +0200 | [diff] [blame] | 90 | <artifactId>org.eclipse.jgit.ssh.jsch</artifactId> |
| 91 | <version>${project.version}</version> |
| 92 | </dependency> |
| 93 | |
| 94 | <dependency> |
| Matthias Sohn | 2647d02 | 2015-11-27 11:46:21 +0100 | [diff] [blame] | 95 | <groupId>org.apache.httpcomponents</groupId> |
| 96 | <artifactId>httpclient</artifactId> |
| 97 | </dependency> |
| 98 | |
| 99 | <dependency> |
| Matthias Sohn | dd453f4 | 2015-03-09 15:57:48 -0700 | [diff] [blame] | 100 | <groupId>org.slf4j</groupId> |
| 101 | <artifactId>slf4j-api</artifactId> |
| Matthias Sohn | dd453f4 | 2015-03-09 15:57:48 -0700 | [diff] [blame] | 102 | </dependency> |
| 103 | |
| 104 | <dependency> |
| 105 | <groupId>org.slf4j</groupId> |
| Matthias Sohn | 486afbc | 2021-12-16 18:42:45 +0100 | [diff] [blame] | 106 | <artifactId>slf4j-simple</artifactId> |
| Matthias Sohn | dd453f4 | 2015-03-09 15:57:48 -0700 | [diff] [blame] | 107 | </dependency> |
| Matthias Sohn | 3bae524 | 2015-12-22 16:11:43 +0100 | [diff] [blame] | 108 | |
| 109 | <dependency> |
| David Ostrovsky | 026d46d | 2024-05-05 10:56:32 +0200 | [diff] [blame] | 110 | <groupId>org.eclipse.jetty.ee10</groupId> |
| 111 | <artifactId>jetty-ee10-servlet</artifactId> |
| Matthias Sohn | 3bae524 | 2015-12-22 16:11:43 +0100 | [diff] [blame] | 112 | </dependency> |
| 113 | |
| 114 | <dependency> |
| Matthias Sohn | 3bae524 | 2015-12-22 16:11:43 +0100 | [diff] [blame] | 115 | <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 Sohn | 76b3781 | 2019-06-16 20:45:47 +0200 | [diff] [blame] | 125 | |
| 126 | <dependency> |
| 127 | <groupId>org.tukaani</groupId> |
| 128 | <artifactId>xz</artifactId> |
| 129 | <optional>true</optional> |
| 130 | </dependency> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 131 | </dependencies> |
| 132 | |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 133 | <build> |
| 134 | <sourceDirectory>src/</sourceDirectory> |
| 135 | |
| 136 | <resources> |
| 137 | <resource> |
| 138 | <directory>.</directory> |
| 139 | <includes> |
| Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 140 | <include>plugin.properties</include> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 141 | <include>META-INF/services/org.eclipse.jgit.pgm.TextBuiltin</include> |
| Matthias Sohn | e1af16a | 2011-06-08 22:42:20 +0200 | [diff] [blame] | 142 | <include>about.html</include> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 143 | </includes> |
| 144 | </resource> |
| Sasa Zivkov | f3d8a8e | 2010-05-19 16:59:28 +0200 | [diff] [blame] | 145 | <resource> |
| 146 | <directory>resources/</directory> |
| 147 | </resource> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 148 | </resources> |
| 149 | |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 150 | <plugins> |
| 151 | <plugin> |
| Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 152 | <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 Prabhala | 137e91a | 2018-12-03 20:13:27 +0100 | [diff] [blame] | 161 | <groupId>org.springframework.boot</groupId> |
| 162 | <artifactId>spring-boot-maven-plugin</artifactId> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 163 | <executions> |
| 164 | <execution> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 165 | <goals> |
| Medha Bhargav Prabhala | 137e91a | 2018-12-03 20:13:27 +0100 | [diff] [blame] | 166 | <goal>repackage</goal> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 167 | </goals> |
| 168 | <configuration> |
| 169 | <finalName>jgit-cli</finalName> |
| Medha Bhargav Prabhala | 137e91a | 2018-12-03 20:13:27 +0100 | [diff] [blame] | 170 | <attach>false</attach> |
| 171 | <mainClass>org.eclipse.jgit.pgm.Main</mainClass> |
| 172 | <executable>true</executable> |
| 173 | <embeddedLaunchScript>jgit.sh</embeddedLaunchScript> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 174 | </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. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 182 | <executions> |
| 183 | <execution> |
| 184 | <id>create_jgit</id> |
| 185 | <phase>package</phase> |
| 186 | <configuration> |
| Alexander Kurtakov | 5c788e2 | 2014-12-09 14:48:42 +0200 | [diff] [blame] | 187 | <target> |
| Medha Bhargav Prabhala | 137e91a | 2018-12-03 20:13:27 +0100 | [diff] [blame] | 188 | <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 Kurtakov | 5c788e2 | 2014-12-09 14:48:42 +0200 | [diff] [blame] | 195 | </target> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 196 | </configuration> |
| 197 | <goals> |
| 198 | <goal>run</goal> |
| 199 | </goals> |
| 200 | </execution> |
| Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 201 | <execution> |
| 202 | <id>translate-source-qualifier</id> |
| 203 | <phase>generate-resources</phase> |
| 204 | <configuration> |
| Alexander Kurtakov | 5c788e2 | 2014-12-09 14:48:42 +0200 | [diff] [blame] | 205 | <target> |
| Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 206 | <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/> |
| 207 | <replace file="${source-bundle-manifest}"> |
| Matthias Sohn | 6007371 | 2023-10-06 01:10:40 +0200 | [diff] [blame] | 208 | <replacefilter token=".qualifier" value=".${commit.time.version}"/> |
| Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 209 | </replace> |
| Alexander Kurtakov | 5c788e2 | 2014-12-09 14:48:42 +0200 | [diff] [blame] | 210 | </target> |
| Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 211 | </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. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 236 | </executions> |
| 237 | </plugin> |
| 238 | |
| 239 | <plugin> |
| 240 | <groupId>org.codehaus.mojo</groupId> |
| 241 | <artifactId>build-helper-maven-plugin</artifactId> |
| Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 242 | <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> |