Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
Shawn O. Pearce | 1e48c33 | 2010-01-28 11:13:11 -0800 | [diff] [blame] | 3 | Copyright (C) 2009-2010, Google Inc. |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 4 | and other copyright owners as documented in the project's IP log. |
| 5 | |
| 6 | This program and the accompanying materials are made available |
| 7 | under the terms of the Eclipse Distribution License v1.0 which |
| 8 | accompanies this distribution, is reproduced below, and is |
| 9 | available at http://www.eclipse.org/org/documents/edl-v10.php |
| 10 | |
| 11 | All rights reserved. |
| 12 | |
| 13 | Redistribution and use in source and binary forms, with or |
| 14 | without modification, are permitted provided that the following |
| 15 | conditions are met: |
| 16 | |
| 17 | - Redistributions of source code must retain the above copyright |
| 18 | notice, this list of conditions and the following disclaimer. |
| 19 | |
| 20 | - Redistributions in binary form must reproduce the above |
| 21 | copyright notice, this list of conditions and the following |
| 22 | disclaimer in the documentation and/or other materials provided |
| 23 | with the distribution. |
| 24 | |
| 25 | - Neither the name of the Eclipse Foundation, Inc. nor the |
| 26 | names of its contributors may be used to endorse or promote |
| 27 | products derived from this software without specific prior |
| 28 | written permission. |
| 29 | |
| 30 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| 31 | CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 32 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 33 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 34 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
| 35 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 36 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 37 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 38 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 39 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 40 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 41 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 42 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 43 | --> |
| 44 | |
| 45 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 46 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 47 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 48 | <modelVersion>4.0.0</modelVersion> |
| 49 | |
| 50 | <parent> |
| 51 | <groupId>org.eclipse.jgit</groupId> |
Shawn O. Pearce | fc5fc70 | 2009-12-28 12:01:19 -0800 | [diff] [blame] | 52 | <artifactId>org.eclipse.jgit-parent</artifactId> |
Matthias Sohn | 7865d71 | 2014-06-21 00:57:43 +0200 | [diff] [blame] | 53 | <version>3.4.2-SNAPSHOT</version> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 54 | </parent> |
| 55 | |
| 56 | <artifactId>org.eclipse.jgit.pgm</artifactId> |
| 57 | <name>JGit - Command Line Interface</name> |
| 58 | |
| 59 | <description> |
| 60 | Command line client tools built on top of JGit. |
| 61 | </description> |
| 62 | |
Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 63 | <properties> |
| 64 | <translate-qualifier/> |
| 65 | <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest> |
| 66 | </properties> |
| 67 | |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 68 | <dependencies> |
| 69 | <dependency> |
| 70 | <groupId>args4j</groupId> |
| 71 | <artifactId>args4j</artifactId> |
| 72 | </dependency> |
| 73 | |
| 74 | <dependency> |
Jonathan Nieder | 1547eaf | 2012-12-03 09:55:02 -0800 | [diff] [blame] | 75 | <groupId>org.apache.commons</groupId> |
| 76 | <artifactId>commons-compress</artifactId> |
| 77 | </dependency> |
| 78 | |
| 79 | <dependency> |
Jonathan Nieder | 56276d0 | 2013-05-24 17:30:18 -0700 | [diff] [blame] | 80 | <groupId>org.eclipse.jgit</groupId> |
| 81 | <artifactId>org.eclipse.jgit.archive</artifactId> |
| 82 | <version>${project.version}</version> |
Shawn O. Pearce | fc5fc70 | 2009-12-28 12:01:19 -0800 | [diff] [blame] | 83 | </dependency> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 84 | |
| 85 | <dependency> |
| 86 | <groupId>org.eclipse.jgit</groupId> |
| 87 | <artifactId>org.eclipse.jgit</artifactId> |
Shawn O. Pearce | 1e48c33 | 2010-01-28 11:13:11 -0800 | [diff] [blame] | 88 | <version>${project.version}</version> |
| 89 | </dependency> |
| 90 | |
| 91 | <dependency> |
| 92 | <groupId>org.eclipse.jgit</groupId> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 93 | <artifactId>org.eclipse.jgit.ui</artifactId> |
Shawn O. Pearce | fc5fc70 | 2009-12-28 12:01:19 -0800 | [diff] [blame] | 94 | <version>${project.version}</version> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 95 | </dependency> |
| 96 | </dependencies> |
| 97 | |
Shawn O. Pearce | 7e8dc53 | 2009-10-31 19:39:18 -0700 | [diff] [blame] | 98 | <profiles> |
| 99 | <profile> |
| 100 | <id>java6</id> |
| 101 | <activation> |
Robin Rosenberg | dd31816 | 2013-02-04 01:10:26 +0100 | [diff] [blame] | 102 | <jdk>1.6</jdk> |
| 103 | </activation> |
| 104 | <dependencies> |
| 105 | <dependency> |
| 106 | <groupId>org.eclipse.jgit</groupId> |
| 107 | <artifactId>org.eclipse.jgit.console</artifactId> |
| 108 | <version>${project.version}</version> |
| 109 | </dependency> |
| 110 | </dependencies> |
| 111 | </profile> |
| 112 | <profile> |
| 113 | <id>java7</id> |
| 114 | <activation> |
Robin Rosenberg | bb9a485 | 2014-03-29 10:20:26 +0100 | [diff] [blame] | 115 | <jdk>[1.7,)</jdk> |
Shawn O. Pearce | 7e8dc53 | 2009-10-31 19:39:18 -0700 | [diff] [blame] | 116 | </activation> |
| 117 | <dependencies> |
| 118 | <dependency> |
| 119 | <groupId>org.eclipse.jgit</groupId> |
Robin Rosenberg | dd31816 | 2013-02-04 01:10:26 +0100 | [diff] [blame] | 120 | <artifactId>org.eclipse.jgit.java7</artifactId> |
| 121 | <version>${project.version}</version> |
| 122 | <optional>true</optional> |
| 123 | </dependency> |
| 124 | <dependency> |
| 125 | <groupId>org.eclipse.jgit</groupId> |
Shawn O. Pearce | 7e8dc53 | 2009-10-31 19:39:18 -0700 | [diff] [blame] | 126 | <artifactId>org.eclipse.jgit.console</artifactId> |
| 127 | <version>${project.version}</version> |
| 128 | </dependency> |
| 129 | </dependencies> |
| 130 | </profile> |
| 131 | </profiles> |
| 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> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 161 | <groupId>org.apache.maven.plugins</groupId> |
| 162 | <artifactId>maven-shade-plugin</artifactId> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 163 | <executions> |
| 164 | <execution> |
| 165 | <phase>package</phase> |
| 166 | <goals> |
| 167 | <goal>shade</goal> |
| 168 | </goals> |
| 169 | <configuration> |
| 170 | <finalName>jgit-cli</finalName> |
| 171 | <createDependencyReducedPom>false</createDependencyReducedPom> |
| 172 | <transformers> |
| 173 | <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 174 | <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 175 | <manifestEntries> |
| 176 | <Main-Class>org.eclipse.jgit.pgm.Main</Main-Class> |
| 177 | <Implementation-Title>JGit Command Line Interface</Implementation-Title> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 178 | </manifestEntries> |
| 179 | </transformer> |
| 180 | </transformers> |
Matthias Sohn | b4f07df | 2013-09-24 09:11:47 +0200 | [diff] [blame] | 181 | <filters> |
| 182 | <!-- exclude the signing data for individual jars, ueberjar will be signed again --> |
| 183 | <filter> |
| 184 | <artifact>*:*</artifact> |
| 185 | <excludes> |
| 186 | <exclude>META-INF/*.SF</exclude> |
| 187 | <exclude>META-INF/*.DSA</exclude> |
| 188 | <exclude>META-INF/*.RSA</exclude> |
| 189 | <exclude>OSGI-OPT/**</exclude> |
| 190 | </excludes> |
| 191 | </filter> |
| 192 | </filters> |
| 193 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 194 | <shadedClassifierName>shaded</shadedClassifierName> <!-- Any name that makes sense --> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 195 | </configuration> |
| 196 | </execution> |
| 197 | </executions> |
| 198 | </plugin> |
| 199 | |
| 200 | <plugin> |
| 201 | <groupId>org.apache.maven.plugins</groupId> |
| 202 | <artifactId>maven-antrun-plugin</artifactId> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 203 | <executions> |
| 204 | <execution> |
| 205 | <id>create_jgit</id> |
| 206 | <phase>package</phase> |
| 207 | <configuration> |
| 208 | <tasks> |
| 209 | <concat destfile="${basedir}/target/jgit" force="yes" binary="true"> |
| 210 | <fileset file="${basedir}/jgit.sh" /> |
| 211 | <fileset file="${basedir}/target/jgit-cli.jar" /> |
| 212 | </concat> |
| 213 | <chmod file="${basedir}/target/jgit" perm="a+x"/> |
| 214 | </tasks> |
| 215 | </configuration> |
| 216 | <goals> |
| 217 | <goal>run</goal> |
| 218 | </goals> |
| 219 | </execution> |
Matthias Sohn | 4974090 | 2012-06-12 00:17:55 +0200 | [diff] [blame] | 220 | <execution> |
| 221 | <id>translate-source-qualifier</id> |
| 222 | <phase>generate-resources</phase> |
| 223 | <configuration> |
| 224 | <tasks> |
| 225 | <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/> |
| 226 | <replace file="${source-bundle-manifest}"> |
| 227 | <replacefilter token=".qualifier" value=".${maven.build.timestamp}"/> |
| 228 | </replace> |
| 229 | </tasks> |
| 230 | </configuration> |
| 231 | <goals> |
| 232 | <goal>run</goal> |
| 233 | </goals> |
| 234 | </execution> |
| 235 | </executions> |
| 236 | </plugin> |
| 237 | |
| 238 | <plugin> |
| 239 | <groupId>org.apache.maven.plugins</groupId> |
| 240 | <artifactId>maven-source-plugin</artifactId> |
| 241 | <inherited>true</inherited> |
| 242 | <executions> |
| 243 | <execution> |
| 244 | <id>attach-sources</id> |
| 245 | <phase>process-classes</phase> |
| 246 | <goals> |
| 247 | <goal>jar</goal> |
| 248 | </goals> |
| 249 | <configuration> |
| 250 | <archive> |
| 251 | <manifestFile>${source-bundle-manifest}</manifestFile> |
| 252 | </archive> |
| 253 | </configuration> |
| 254 | </execution> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 255 | </executions> |
| 256 | </plugin> |
| 257 | |
| 258 | <plugin> |
| 259 | <groupId>org.codehaus.mojo</groupId> |
| 260 | <artifactId>build-helper-maven-plugin</artifactId> |
Shawn O. Pearce | dad52ba | 2009-10-31 18:07:26 -0700 | [diff] [blame] | 261 | <executions> |
| 262 | <execution> |
| 263 | <id>attach_jgit</id> |
| 264 | <phase>package</phase> |
| 265 | <goals> |
| 266 | <goal>attach-artifact</goal> |
| 267 | </goals> |
| 268 | <configuration> |
| 269 | <artifacts> |
| 270 | <artifact> |
| 271 | <file>${basedir}/target/jgit</file> |
| 272 | <type>sh</type> |
| 273 | </artifact> |
| 274 | </artifacts> |
| 275 | </configuration> |
| 276 | </execution> |
| 277 | </executions> |
| 278 | </plugin> |
| 279 | </plugins> |
| 280 | </build> |
| 281 | </project> |