xref: /JGit/org.eclipse.jgit.pgm/pom.xml (revision 1547eaf7c57e93b3ff7fb9d2450fe3e87ba614ed)
1dad52baaSShawn O. Pearce<?xml version="1.0" encoding="UTF-8"?>
2dad52baaSShawn O. Pearce<!--
31e48c338SShawn O. Pearce   Copyright (C) 2009-2010, Google Inc.
4dad52baaSShawn O. Pearce   and other copyright owners as documented in the project's IP log.
5dad52baaSShawn O. Pearce
6dad52baaSShawn O. Pearce   This program and the accompanying materials are made available
7dad52baaSShawn O. Pearce   under the terms of the Eclipse Distribution License v1.0 which
8dad52baaSShawn O. Pearce   accompanies this distribution, is reproduced below, and is
9dad52baaSShawn O. Pearce   available at http://www.eclipse.org/org/documents/edl-v10.php
10dad52baaSShawn O. Pearce
11dad52baaSShawn O. Pearce   All rights reserved.
12dad52baaSShawn O. Pearce
13dad52baaSShawn O. Pearce   Redistribution and use in source and binary forms, with or
14dad52baaSShawn O. Pearce   without modification, are permitted provided that the following
15dad52baaSShawn O. Pearce   conditions are met:
16dad52baaSShawn O. Pearce
17dad52baaSShawn O. Pearce   - Redistributions of source code must retain the above copyright
18dad52baaSShawn O. Pearce     notice, this list of conditions and the following disclaimer.
19dad52baaSShawn O. Pearce
20dad52baaSShawn O. Pearce   - Redistributions in binary form must reproduce the above
21dad52baaSShawn O. Pearce     copyright notice, this list of conditions and the following
22dad52baaSShawn O. Pearce     disclaimer in the documentation and/or other materials provided
23dad52baaSShawn O. Pearce     with the distribution.
24dad52baaSShawn O. Pearce
25dad52baaSShawn O. Pearce   - Neither the name of the Eclipse Foundation, Inc. nor the
26dad52baaSShawn O. Pearce     names of its contributors may be used to endorse or promote
27dad52baaSShawn O. Pearce     products derived from this software without specific prior
28dad52baaSShawn O. Pearce     written permission.
29dad52baaSShawn O. Pearce
30dad52baaSShawn O. Pearce   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
31dad52baaSShawn O. Pearce   CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
32dad52baaSShawn O. Pearce   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
33dad52baaSShawn O. Pearce   OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34dad52baaSShawn O. Pearce   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
35dad52baaSShawn O. Pearce   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
36dad52baaSShawn O. Pearce   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
37dad52baaSShawn O. Pearce   NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
38dad52baaSShawn O. Pearce   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39dad52baaSShawn O. Pearce   CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
40dad52baaSShawn O. Pearce   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41dad52baaSShawn O. Pearce   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
42dad52baaSShawn O. Pearce   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43dad52baaSShawn O. Pearce-->
44dad52baaSShawn O. Pearce
45dad52baaSShawn O. Pearce<project xmlns="http://maven.apache.org/POM/4.0.0"
46dad52baaSShawn O. Pearce    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
47dad52baaSShawn O. Pearce    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
48dad52baaSShawn O. Pearce  <modelVersion>4.0.0</modelVersion>
49dad52baaSShawn O. Pearce
50dad52baaSShawn O. Pearce  <parent>
51dad52baaSShawn O. Pearce    <groupId>org.eclipse.jgit</groupId>
52fc5fc70eSShawn O. Pearce    <artifactId>org.eclipse.jgit-parent</artifactId>
534b3c0f8aSMatthias Sohn    <version>2.2.0-SNAPSHOT</version>
54dad52baaSShawn O. Pearce  </parent>
55dad52baaSShawn O. Pearce
56dad52baaSShawn O. Pearce  <artifactId>org.eclipse.jgit.pgm</artifactId>
57dad52baaSShawn O. Pearce  <name>JGit - Command Line Interface</name>
58dad52baaSShawn O. Pearce
59dad52baaSShawn O. Pearce  <description>
60dad52baaSShawn O. Pearce    Command line client tools built on top of JGit.
61dad52baaSShawn O. Pearce  </description>
62dad52baaSShawn O. Pearce
634974090dSMatthias Sohn  <properties>
644974090dSMatthias Sohn    <translate-qualifier/>
654974090dSMatthias Sohn    <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
664974090dSMatthias Sohn  </properties>
674974090dSMatthias Sohn
68dad52baaSShawn O. Pearce  <dependencies>
69dad52baaSShawn O. Pearce    <dependency>
70dad52baaSShawn O. Pearce      <groupId>args4j</groupId>
71dad52baaSShawn O. Pearce      <artifactId>args4j</artifactId>
72dad52baaSShawn O. Pearce    </dependency>
73dad52baaSShawn O. Pearce
74dad52baaSShawn O. Pearce    <dependency>
75*1547eaf7SJonathan Nieder      <groupId>org.apache.commons</groupId>
76*1547eaf7SJonathan Nieder      <artifactId>commons-compress</artifactId>
77*1547eaf7SJonathan Nieder    </dependency>
78*1547eaf7SJonathan Nieder
79*1547eaf7SJonathan Nieder    <dependency>
80dad52baaSShawn O. Pearce      <groupId>org.eclipse.jgit</groupId>
81dad52baaSShawn O. Pearce      <artifactId>org.eclipse.jgit</artifactId>
82fc5fc70eSShawn O. Pearce      <version>${project.version}</version>
83dad52baaSShawn O. Pearce    </dependency>
84dad52baaSShawn O. Pearce
85dad52baaSShawn O. Pearce    <dependency>
86dad52baaSShawn O. Pearce      <groupId>org.eclipse.jgit</groupId>
871e48c338SShawn O. Pearce      <artifactId>org.eclipse.jgit.iplog</artifactId>
881e48c338SShawn O. Pearce      <version>${project.version}</version>
891e48c338SShawn O. Pearce    </dependency>
901e48c338SShawn O. Pearce
911e48c338SShawn O. Pearce    <dependency>
921e48c338SShawn O. Pearce      <groupId>org.eclipse.jgit</groupId>
93dad52baaSShawn O. Pearce      <artifactId>org.eclipse.jgit.ui</artifactId>
94fc5fc70eSShawn O. Pearce      <version>${project.version}</version>
95dad52baaSShawn O. Pearce    </dependency>
96dad52baaSShawn O. Pearce  </dependencies>
97dad52baaSShawn O. Pearce
987e8dc538SShawn O. Pearce  <profiles>
997e8dc538SShawn O. Pearce    <profile>
1007e8dc538SShawn O. Pearce      <id>java6</id>
1017e8dc538SShawn O. Pearce      <activation>
1027e8dc538SShawn O. Pearce        <activeByDefault>true</activeByDefault>
1037e8dc538SShawn O. Pearce      </activation>
1047e8dc538SShawn O. Pearce      <dependencies>
1057e8dc538SShawn O. Pearce        <dependency>
1067e8dc538SShawn O. Pearce          <groupId>org.eclipse.jgit</groupId>
1077e8dc538SShawn O. Pearce          <artifactId>org.eclipse.jgit.console</artifactId>
1087e8dc538SShawn O. Pearce          <version>${project.version}</version>
1097e8dc538SShawn O. Pearce        </dependency>
1107e8dc538SShawn O. Pearce      </dependencies>
1117e8dc538SShawn O. Pearce    </profile>
1127e8dc538SShawn O. Pearce  </profiles>
1137e8dc538SShawn O. Pearce
114dad52baaSShawn O. Pearce  <build>
115dad52baaSShawn O. Pearce    <sourceDirectory>src/</sourceDirectory>
116dad52baaSShawn O. Pearce
117dad52baaSShawn O. Pearce    <resources>
118dad52baaSShawn O. Pearce      <resource>
119dad52baaSShawn O. Pearce        <directory>.</directory>
120dad52baaSShawn O. Pearce        <includes>
1214974090dSMatthias Sohn          <include>plugin.properties</include>
122dad52baaSShawn O. Pearce          <include>META-INF/services/org.eclipse.jgit.pgm.TextBuiltin</include>
123e1af16adSMatthias Sohn          <include>about.html</include>
124dad52baaSShawn O. Pearce        </includes>
125dad52baaSShawn O. Pearce      </resource>
126f3d8a8ecSSasa Zivkov      <resource>
127f3d8a8ecSSasa Zivkov        <directory>resources/</directory>
128f3d8a8ecSSasa Zivkov      </resource>
129dad52baaSShawn O. Pearce    </resources>
130dad52baaSShawn O. Pearce
131dad52baaSShawn O. Pearce    <plugins>
132dad52baaSShawn O. Pearce      <plugin>
1334974090dSMatthias Sohn        <artifactId>maven-jar-plugin</artifactId>
1344974090dSMatthias Sohn        <configuration>
1354974090dSMatthias Sohn          <archive>
1364974090dSMatthias Sohn            <manifestFile>${bundle-manifest}</manifestFile>
1374974090dSMatthias Sohn          </archive>
1384974090dSMatthias Sohn        </configuration>
1394974090dSMatthias Sohn      </plugin>
1404974090dSMatthias Sohn
1414974090dSMatthias Sohn      <plugin>
142dad52baaSShawn O. Pearce        <groupId>org.apache.maven.plugins</groupId>
143dad52baaSShawn O. Pearce        <artifactId>maven-shade-plugin</artifactId>
144dad52baaSShawn O. Pearce        <executions>
145dad52baaSShawn O. Pearce          <execution>
146dad52baaSShawn O. Pearce            <phase>package</phase>
147dad52baaSShawn O. Pearce            <goals>
148dad52baaSShawn O. Pearce              <goal>shade</goal>
149dad52baaSShawn O. Pearce            </goals>
150dad52baaSShawn O. Pearce            <configuration>
151dad52baaSShawn O. Pearce              <finalName>jgit-cli</finalName>
152dad52baaSShawn O. Pearce              <createDependencyReducedPom>false</createDependencyReducedPom>
153dad52baaSShawn O. Pearce              <transformers>
154dad52baaSShawn O. Pearce                <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
155dad52baaSShawn O. Pearce                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
156dad52baaSShawn O. Pearce                  <manifestEntries>
157dad52baaSShawn O. Pearce                    <Main-Class>org.eclipse.jgit.pgm.Main</Main-Class>
158dad52baaSShawn O. Pearce                    <Implementation-Title>JGit Command Line Interface</Implementation-Title>
159dad52baaSShawn O. Pearce                  </manifestEntries>
160dad52baaSShawn O. Pearce                </transformer>
161dad52baaSShawn O. Pearce              </transformers>
162dad52baaSShawn O. Pearce            </configuration>
163dad52baaSShawn O. Pearce          </execution>
164dad52baaSShawn O. Pearce        </executions>
165dad52baaSShawn O. Pearce      </plugin>
166dad52baaSShawn O. Pearce
167dad52baaSShawn O. Pearce      <plugin>
168dad52baaSShawn O. Pearce        <groupId>org.apache.maven.plugins</groupId>
169dad52baaSShawn O. Pearce        <artifactId>maven-antrun-plugin</artifactId>
170dad52baaSShawn O. Pearce        <executions>
171dad52baaSShawn O. Pearce          <execution>
172dad52baaSShawn O. Pearce            <id>create_jgit</id>
173dad52baaSShawn O. Pearce            <phase>package</phase>
174dad52baaSShawn O. Pearce            <configuration>
175dad52baaSShawn O. Pearce              <tasks>
176dad52baaSShawn O. Pearce                <concat destfile="${basedir}/target/jgit" force="yes" binary="true">
177dad52baaSShawn O. Pearce                  <fileset file="${basedir}/jgit.sh" />
178dad52baaSShawn O. Pearce                  <fileset file="${basedir}/target/jgit-cli.jar" />
179dad52baaSShawn O. Pearce                </concat>
180dad52baaSShawn O. Pearce                <chmod file="${basedir}/target/jgit" perm="a+x"/>
181dad52baaSShawn O. Pearce              </tasks>
182dad52baaSShawn O. Pearce            </configuration>
183dad52baaSShawn O. Pearce            <goals>
184dad52baaSShawn O. Pearce              <goal>run</goal>
185dad52baaSShawn O. Pearce            </goals>
186dad52baaSShawn O. Pearce          </execution>
1874974090dSMatthias Sohn          <execution>
1884974090dSMatthias Sohn            <id>translate-source-qualifier</id>
1894974090dSMatthias Sohn            <phase>generate-resources</phase>
1904974090dSMatthias Sohn            <configuration>
1914974090dSMatthias Sohn              <tasks>
1924974090dSMatthias Sohn                <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
1934974090dSMatthias Sohn                <replace file="${source-bundle-manifest}">
1944974090dSMatthias Sohn                  <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
1954974090dSMatthias Sohn                </replace>
1964974090dSMatthias Sohn              </tasks>
1974974090dSMatthias Sohn            </configuration>
1984974090dSMatthias Sohn            <goals>
1994974090dSMatthias Sohn              <goal>run</goal>
2004974090dSMatthias Sohn            </goals>
2014974090dSMatthias Sohn          </execution>
2024974090dSMatthias Sohn        </executions>
2034974090dSMatthias Sohn      </plugin>
2044974090dSMatthias Sohn
2054974090dSMatthias Sohn      <plugin>
2064974090dSMatthias Sohn        <groupId>org.apache.maven.plugins</groupId>
2074974090dSMatthias Sohn        <artifactId>maven-source-plugin</artifactId>
2084974090dSMatthias Sohn        <inherited>true</inherited>
2094974090dSMatthias Sohn        <executions>
2104974090dSMatthias Sohn          <execution>
2114974090dSMatthias Sohn            <id>attach-sources</id>
2124974090dSMatthias Sohn            <phase>process-classes</phase>
2134974090dSMatthias Sohn            <goals>
2144974090dSMatthias Sohn              <goal>jar</goal>
2154974090dSMatthias Sohn            </goals>
2164974090dSMatthias Sohn            <configuration>
2174974090dSMatthias Sohn              <archive>
2184974090dSMatthias Sohn                <manifestFile>${source-bundle-manifest}</manifestFile>
2194974090dSMatthias Sohn              </archive>
2204974090dSMatthias Sohn            </configuration>
2214974090dSMatthias Sohn          </execution>
222dad52baaSShawn O. Pearce        </executions>
223dad52baaSShawn O. Pearce      </plugin>
224dad52baaSShawn O. Pearce
225dad52baaSShawn O. Pearce      <plugin>
226dad52baaSShawn O. Pearce        <groupId>org.codehaus.mojo</groupId>
227dad52baaSShawn O. Pearce        <artifactId>build-helper-maven-plugin</artifactId>
228dad52baaSShawn O. Pearce        <executions>
229dad52baaSShawn O. Pearce          <execution>
230dad52baaSShawn O. Pearce            <id>attach_jgit</id>
231dad52baaSShawn O. Pearce            <phase>package</phase>
232dad52baaSShawn O. Pearce            <goals>
233dad52baaSShawn O. Pearce              <goal>attach-artifact</goal>
234dad52baaSShawn O. Pearce            </goals>
235dad52baaSShawn O. Pearce            <configuration>
236dad52baaSShawn O. Pearce              <artifacts>
237dad52baaSShawn O. Pearce                <artifact>
238dad52baaSShawn O. Pearce                  <file>${basedir}/target/jgit</file>
239dad52baaSShawn O. Pearce                  <type>sh</type>
240dad52baaSShawn O. Pearce                </artifact>
241dad52baaSShawn O. Pearce              </artifacts>
242dad52baaSShawn O. Pearce            </configuration>
243dad52baaSShawn O. Pearce          </execution>
244dad52baaSShawn O. Pearce        </executions>
245dad52baaSShawn O. Pearce      </plugin>
246dad52baaSShawn O. Pearce    </plugins>
247dad52baaSShawn O. Pearce  </build>
248dad52baaSShawn O. Pearce</project>
249