xref: /JGit/org.eclipse.jgit.pgm/pom.xml (revision 5c5f7c6b146b24f2bd4afae1902df85ad6e57ea3)
1dad52baaSShawn O. Pearce<?xml version="1.0" encoding="UTF-8"?>
2dad52baaSShawn O. Pearce<!--
3*5c5f7c6bSMatthias Sohn  Copyright (C) 2009-2010, Google Inc. and others
4dad52baaSShawn O. Pearce
5*5c5f7c6bSMatthias Sohn  This program and the accompanying materials are made available under the
6*5c5f7c6bSMatthias Sohn  terms of the Eclipse Distribution License v. 1.0 which is available at
7*5c5f7c6bSMatthias Sohn  http://www.eclipse.org/org/documents/edl-v10.php.
8dad52baaSShawn O. Pearce
9*5c5f7c6bSMatthias Sohn  SPDX-License-Identifier: BSD-3-Clause
10dad52baaSShawn O. Pearce-->
11dad52baaSShawn O. Pearce
12dad52baaSShawn O. Pearce<project xmlns="http://maven.apache.org/POM/4.0.0"
13dad52baaSShawn O. Pearce    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14dad52baaSShawn O. Pearce    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
15dad52baaSShawn O. Pearce  <modelVersion>4.0.0</modelVersion>
16dad52baaSShawn O. Pearce
17dad52baaSShawn O. Pearce  <parent>
18dad52baaSShawn O. Pearce    <groupId>org.eclipse.jgit</groupId>
19fc5fc70eSShawn O. Pearce    <artifactId>org.eclipse.jgit-parent</artifactId>
20f487a9ebSMatthias Sohn    <version>5.7.0-SNAPSHOT</version>
21dad52baaSShawn O. Pearce  </parent>
22dad52baaSShawn O. Pearce
23dad52baaSShawn O. Pearce  <artifactId>org.eclipse.jgit.pgm</artifactId>
24dad52baaSShawn O. Pearce  <name>JGit - Command Line Interface</name>
25dad52baaSShawn O. Pearce
26dad52baaSShawn O. Pearce  <description>
27dad52baaSShawn O. Pearce    Command line client tools built on top of JGit.
28dad52baaSShawn O. Pearce  </description>
29dad52baaSShawn O. Pearce
304974090dSMatthias Sohn  <properties>
314974090dSMatthias Sohn    <translate-qualifier/>
324974090dSMatthias Sohn    <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
334974090dSMatthias Sohn  </properties>
344974090dSMatthias Sohn
35dad52baaSShawn O. Pearce  <dependencies>
36dad52baaSShawn O. Pearce    <dependency>
37dad52baaSShawn O. Pearce      <groupId>args4j</groupId>
38dad52baaSShawn O. Pearce      <artifactId>args4j</artifactId>
39dad52baaSShawn O. Pearce    </dependency>
40dad52baaSShawn O. Pearce
41dad52baaSShawn O. Pearce    <dependency>
421547eaf7SJonathan Nieder      <groupId>org.apache.commons</groupId>
431547eaf7SJonathan Nieder      <artifactId>commons-compress</artifactId>
441547eaf7SJonathan Nieder    </dependency>
451547eaf7SJonathan Nieder
461547eaf7SJonathan Nieder    <dependency>
4756276d05SJonathan Nieder      <groupId>org.eclipse.jgit</groupId>
4856276d05SJonathan Nieder      <artifactId>org.eclipse.jgit.archive</artifactId>
4956276d05SJonathan Nieder      <version>${project.version}</version>
50fc5fc70eSShawn O. Pearce    </dependency>
51dad52baaSShawn O. Pearce
52dad52baaSShawn O. Pearce    <dependency>
53dad52baaSShawn O. Pearce      <groupId>org.eclipse.jgit</groupId>
54dad52baaSShawn O. Pearce      <artifactId>org.eclipse.jgit</artifactId>
551e48c338SShawn O. Pearce      <version>${project.version}</version>
561e48c338SShawn O. Pearce    </dependency>
571e48c338SShawn O. Pearce
581e48c338SShawn O. Pearce    <dependency>
591e48c338SShawn O. Pearce      <groupId>org.eclipse.jgit</groupId>
60dad52baaSShawn O. Pearce      <artifactId>org.eclipse.jgit.ui</artifactId>
61fc5fc70eSShawn O. Pearce      <version>${project.version}</version>
62dad52baaSShawn O. Pearce    </dependency>
63dd453f41SMatthias Sohn
64dd453f41SMatthias Sohn    <dependency>
652647d024SMatthias Sohn      <groupId>org.eclipse.jgit</groupId>
662647d024SMatthias Sohn      <artifactId>org.eclipse.jgit.http.apache</artifactId>
672647d024SMatthias Sohn      <version>${project.version}</version>
682647d024SMatthias Sohn    </dependency>
692647d024SMatthias Sohn
702647d024SMatthias Sohn    <dependency>
71a151190bSThomas Wolf      <groupId>org.eclipse.jgit</groupId>
72a151190bSThomas Wolf      <artifactId>org.eclipse.jgit.ssh.apache</artifactId>
73a151190bSThomas Wolf      <version>${project.version}</version>
74a151190bSThomas Wolf    </dependency>
75a151190bSThomas Wolf
76a151190bSThomas Wolf    <dependency>
772647d024SMatthias Sohn      <groupId>org.apache.httpcomponents</groupId>
782647d024SMatthias Sohn      <artifactId>httpclient</artifactId>
792647d024SMatthias Sohn    </dependency>
802647d024SMatthias Sohn
812647d024SMatthias Sohn    <dependency>
82dd453f41SMatthias Sohn      <groupId>org.slf4j</groupId>
83dd453f41SMatthias Sohn      <artifactId>slf4j-api</artifactId>
84dd453f41SMatthias Sohn    </dependency>
85dd453f41SMatthias Sohn
86dd453f41SMatthias Sohn    <dependency>
87dd453f41SMatthias Sohn      <groupId>org.slf4j</groupId>
88dd453f41SMatthias Sohn      <artifactId>slf4j-log4j12</artifactId>
89dd453f41SMatthias Sohn    </dependency>
90dd453f41SMatthias Sohn
91dd453f41SMatthias Sohn    <dependency>
92dd453f41SMatthias Sohn      <groupId>log4j</groupId>
93dd453f41SMatthias Sohn      <artifactId>log4j</artifactId>
94dd453f41SMatthias Sohn    </dependency>
953bae524fSMatthias Sohn
963bae524fSMatthias Sohn    <dependency>
973bae524fSMatthias Sohn      <groupId>org.eclipse.jetty</groupId>
983bae524fSMatthias Sohn      <artifactId>jetty-servlet</artifactId>
993bae524fSMatthias Sohn    </dependency>
1003bae524fSMatthias Sohn
1013bae524fSMatthias Sohn    <dependency>
1023bae524fSMatthias Sohn      <groupId>org.eclipse.jgit</groupId>
1033bae524fSMatthias Sohn      <artifactId>org.eclipse.jgit.lfs</artifactId>
1043bae524fSMatthias Sohn      <version>${project.version}</version>
1053bae524fSMatthias Sohn    </dependency>
1063bae524fSMatthias Sohn
1073bae524fSMatthias Sohn    <dependency>
1083bae524fSMatthias Sohn      <groupId>org.eclipse.jgit</groupId>
1093bae524fSMatthias Sohn      <artifactId>org.eclipse.jgit.lfs.server</artifactId>
1103bae524fSMatthias Sohn      <version>${project.version}</version>
1113bae524fSMatthias Sohn    </dependency>
11276b3781fSMatthias Sohn
11376b3781fSMatthias Sohn    <dependency>
11476b3781fSMatthias Sohn      <groupId>org.tukaani</groupId>
11576b3781fSMatthias Sohn      <artifactId>xz</artifactId>
11676b3781fSMatthias Sohn      <optional>true</optional>
11776b3781fSMatthias Sohn    </dependency>
118dad52baaSShawn O. Pearce  </dependencies>
119dad52baaSShawn O. Pearce
120dad52baaSShawn O. Pearce  <build>
121dad52baaSShawn O. Pearce    <sourceDirectory>src/</sourceDirectory>
122dad52baaSShawn O. Pearce
123dad52baaSShawn O. Pearce    <resources>
124dad52baaSShawn O. Pearce      <resource>
125dad52baaSShawn O. Pearce        <directory>.</directory>
126dad52baaSShawn O. Pearce        <includes>
1274974090dSMatthias Sohn          <include>plugin.properties</include>
128dad52baaSShawn O. Pearce          <include>META-INF/services/org.eclipse.jgit.pgm.TextBuiltin</include>
129e1af16adSMatthias Sohn          <include>about.html</include>
130dad52baaSShawn O. Pearce        </includes>
131dad52baaSShawn O. Pearce      </resource>
132f3d8a8ecSSasa Zivkov      <resource>
133f3d8a8ecSSasa Zivkov        <directory>resources/</directory>
134f3d8a8ecSSasa Zivkov      </resource>
135dad52baaSShawn O. Pearce    </resources>
136dad52baaSShawn O. Pearce
137dad52baaSShawn O. Pearce    <plugins>
138dad52baaSShawn O. Pearce      <plugin>
1394974090dSMatthias Sohn        <artifactId>maven-jar-plugin</artifactId>
1404974090dSMatthias Sohn        <configuration>
1414974090dSMatthias Sohn          <archive>
1424974090dSMatthias Sohn            <manifestFile>${bundle-manifest}</manifestFile>
1434974090dSMatthias Sohn          </archive>
1444974090dSMatthias Sohn        </configuration>
1454974090dSMatthias Sohn      </plugin>
1464974090dSMatthias Sohn
1474974090dSMatthias Sohn      <plugin>
148137e91a4SMedha Bhargav Prabhala        <groupId>org.springframework.boot</groupId>
149137e91a4SMedha Bhargav Prabhala        <artifactId>spring-boot-maven-plugin</artifactId>
150dad52baaSShawn O. Pearce        <executions>
151dad52baaSShawn O. Pearce          <execution>
152dad52baaSShawn O. Pearce            <goals>
153137e91a4SMedha Bhargav Prabhala              <goal>repackage</goal>
154dad52baaSShawn O. Pearce            </goals>
155dad52baaSShawn O. Pearce            <configuration>
156dad52baaSShawn O. Pearce              <finalName>jgit-cli</finalName>
157137e91a4SMedha Bhargav Prabhala              <attach>false</attach>
158137e91a4SMedha Bhargav Prabhala              <mainClass>org.eclipse.jgit.pgm.Main</mainClass>
159137e91a4SMedha Bhargav Prabhala              <executable>true</executable>
160137e91a4SMedha Bhargav Prabhala              <embeddedLaunchScript>jgit.sh</embeddedLaunchScript>
161dad52baaSShawn O. Pearce            </configuration>
162dad52baaSShawn O. Pearce          </execution>
163dad52baaSShawn O. Pearce        </executions>
164dad52baaSShawn O. Pearce      </plugin>
165dad52baaSShawn O. Pearce
166dad52baaSShawn O. Pearce      <plugin>
167dad52baaSShawn O. Pearce        <groupId>org.apache.maven.plugins</groupId>
168dad52baaSShawn O. Pearce        <artifactId>maven-antrun-plugin</artifactId>
169dad52baaSShawn O. Pearce        <executions>
170dad52baaSShawn O. Pearce          <execution>
171dad52baaSShawn O. Pearce            <id>create_jgit</id>
172dad52baaSShawn O. Pearce            <phase>package</phase>
173dad52baaSShawn O. Pearce            <configuration>
1745c788e2cSAlexander Kurtakov              <target>
175137e91a4SMedha Bhargav Prabhala                <move
176137e91a4SMedha Bhargav Prabhala                  file="${basedir}/target/jgit-cli.jar"
177137e91a4SMedha Bhargav Prabhala                  force="yes"
178137e91a4SMedha Bhargav Prabhala                  tofile="${basedir}/target/jgit" />
179137e91a4SMedha Bhargav Prabhala                <chmod
180137e91a4SMedha Bhargav Prabhala                  file="${basedir}/target/jgit"
181137e91a4SMedha Bhargav Prabhala                  perm="a+x" />
1825c788e2cSAlexander Kurtakov              </target>
183dad52baaSShawn O. Pearce            </configuration>
184dad52baaSShawn O. Pearce            <goals>
185dad52baaSShawn O. Pearce              <goal>run</goal>
186dad52baaSShawn O. Pearce            </goals>
187dad52baaSShawn O. Pearce          </execution>
1884974090dSMatthias Sohn          <execution>
1894974090dSMatthias Sohn            <id>translate-source-qualifier</id>
1904974090dSMatthias Sohn            <phase>generate-resources</phase>
1914974090dSMatthias Sohn            <configuration>
1925c788e2cSAlexander Kurtakov              <target>
1934974090dSMatthias Sohn                <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
1944974090dSMatthias Sohn                <replace file="${source-bundle-manifest}">
1954974090dSMatthias Sohn                  <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
1964974090dSMatthias Sohn                </replace>
1975c788e2cSAlexander Kurtakov              </target>
1984974090dSMatthias Sohn            </configuration>
1994974090dSMatthias Sohn            <goals>
2004974090dSMatthias Sohn              <goal>run</goal>
2014974090dSMatthias Sohn            </goals>
2024974090dSMatthias Sohn          </execution>
2034974090dSMatthias Sohn        </executions>
2044974090dSMatthias Sohn      </plugin>
2054974090dSMatthias Sohn
2064974090dSMatthias Sohn      <plugin>
2074974090dSMatthias Sohn        <groupId>org.apache.maven.plugins</groupId>
2084974090dSMatthias Sohn        <artifactId>maven-source-plugin</artifactId>
2094974090dSMatthias Sohn        <inherited>true</inherited>
2104974090dSMatthias Sohn        <executions>
2114974090dSMatthias Sohn          <execution>
2124974090dSMatthias Sohn            <id>attach-sources</id>
2134974090dSMatthias Sohn            <phase>process-classes</phase>
2144974090dSMatthias Sohn            <goals>
2154974090dSMatthias Sohn              <goal>jar</goal>
2164974090dSMatthias Sohn            </goals>
2174974090dSMatthias Sohn            <configuration>
2184974090dSMatthias Sohn              <archive>
2194974090dSMatthias Sohn                <manifestFile>${source-bundle-manifest}</manifestFile>
2204974090dSMatthias Sohn              </archive>
2214974090dSMatthias Sohn            </configuration>
2224974090dSMatthias Sohn          </execution>
223dad52baaSShawn O. Pearce        </executions>
224dad52baaSShawn O. Pearce      </plugin>
225dad52baaSShawn O. Pearce
226dad52baaSShawn O. Pearce      <plugin>
227dad52baaSShawn O. Pearce        <groupId>org.codehaus.mojo</groupId>
228dad52baaSShawn O. Pearce        <artifactId>build-helper-maven-plugin</artifactId>
229dad52baaSShawn O. Pearce        <executions>
230dad52baaSShawn O. Pearce          <execution>
231dad52baaSShawn O. Pearce            <id>attach_jgit</id>
232dad52baaSShawn O. Pearce            <phase>package</phase>
233dad52baaSShawn O. Pearce            <goals>
234dad52baaSShawn O. Pearce              <goal>attach-artifact</goal>
235dad52baaSShawn O. Pearce            </goals>
236dad52baaSShawn O. Pearce            <configuration>
237dad52baaSShawn O. Pearce              <artifacts>
238dad52baaSShawn O. Pearce                <artifact>
239dad52baaSShawn O. Pearce                  <file>${basedir}/target/jgit</file>
240dad52baaSShawn O. Pearce                  <type>sh</type>
241dad52baaSShawn O. Pearce                </artifact>
242dad52baaSShawn O. Pearce              </artifacts>
243dad52baaSShawn O. Pearce            </configuration>
244dad52baaSShawn O. Pearce          </execution>
245dad52baaSShawn O. Pearce        </executions>
246dad52baaSShawn O. Pearce      </plugin>
247dad52baaSShawn O. Pearce    </plugins>
248dad52baaSShawn O. Pearce  </build>
249dad52baaSShawn O. Pearce</project>
250