blob: 3c01f2ad7590c7a0b1c8655c411146695f2e5881 [file] [log] [blame]
Jonathan Nieder56276d02013-05-24 17:30:18 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Matthias Sohn5c5f7c62020-01-04 00:50:50 +01003 Copyright (C) 2013, Google Inc. and others
Jonathan Nieder56276d02013-05-24 17:30:18 -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.
Jonathan Nieder56276d02013-05-24 17:30:18 -07008
Matthias Sohn5c5f7c62020-01-04 00:50:50 +01009 SPDX-License-Identifier: BSD-3-Clause
Jonathan Nieder56276d02013-05-24 17:30:18 -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>
19 <artifactId>org.eclipse.jgit-parent</artifactId>
Matthias Sohnc338c192024-09-03 23:47:11 +020020 <version>7.1.0-SNAPSHOT</version>
Jonathan Nieder56276d02013-05-24 17:30:18 -070021 </parent>
22
23 <artifactId>org.eclipse.jgit.archive</artifactId>
David Pursehouseeb7a93b2016-07-21 17:37:32 +090024 <name>JGit - Archive Formats</name>
Jonathan Nieder56276d02013-05-24 17:30:18 -070025
26 <description>
27 Support for archiving a Git tree in formats such as zip and tar.
28 This is a separate bundle from org.eclipse.jgit to avoid a
29 dependency by the latter on commons-compress.
30 </description>
31
32 <properties>
33 <translate-qualifier/>
Matthias Sohn27f1fb62019-04-01 01:30:44 +020034 <source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
Jonathan Nieder56276d02013-05-24 17:30:18 -070035 </properties>
36
37 <dependencies>
38 <dependency>
39 <groupId>org.apache.commons</groupId>
40 <artifactId>commons-compress</artifactId>
41 </dependency>
42
43 <dependency>
Matthias Sohn69f64a52024-08-28 14:59:04 +020044 <groupId>org.tukaani</groupId>
45 <artifactId>xz</artifactId>
46 </dependency>
47
48 <dependency>
Jonathan Nieder56276d02013-05-24 17:30:18 -070049 <groupId>org.eclipse.jgit</groupId>
50 <artifactId>org.eclipse.jgit</artifactId>
51 <version>${project.version}</version>
52 </dependency>
53
54 <dependency>
55 <groupId>org.osgi</groupId>
56 <artifactId>org.osgi.core</artifactId>
57 </dependency>
58 </dependencies>
59
60 <build>
61 <sourceDirectory>src/</sourceDirectory>
62
63 <resources>
64 <resource>
65 <directory>.</directory>
66 <includes>
67 <include>plugin.properties</include>
68 <include>about.html</include>
69 </includes>
70 </resource>
71 </resources>
72
73 <plugins>
74 <plugin>
Matthias Sohn27f1fb62019-04-01 01:30:44 +020075 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-antrun-plugin</artifactId>
77 <executions>
78 <execution>
79 <id>translate-source-qualifier</id>
80 <phase>generate-resources</phase>
81 <configuration>
82 <target>
83 <copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
84 <replace file="${source-bundle-manifest}">
Matthias Sohn60073712023-10-06 01:10:40 +020085 <replacefilter token=".qualifier" value=".${commit.time.version}"/>
Matthias Sohn27f1fb62019-04-01 01:30:44 +020086 </replace>
87 </target>
88 </configuration>
89 <goals>
90 <goal>run</goal>
91 </goals>
92 </execution>
93 </executions>
94 </plugin>
95
96 <plugin>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-source-plugin</artifactId>
99 <inherited>true</inherited>
100 <executions>
101 <execution>
102 <id>attach-sources</id>
103 <phase>process-classes</phase>
104 <goals>
105 <goal>jar</goal>
106 </goals>
107 <configuration>
108 <archive>
109 <manifestFile>${source-bundle-manifest}</manifestFile>
110 </archive>
111 </configuration>
112 </execution>
113 </executions>
114 </plugin>
115
116 <plugin>
Jonathan Nieder56276d02013-05-24 17:30:18 -0700117 <artifactId>maven-jar-plugin</artifactId>
118 <configuration>
119 <archive>
120 <manifestFile>${bundle-manifest}</manifestFile>
121 </archive>
122 </configuration>
123 </plugin>
Matthias Sohn100179a2015-10-01 01:41:52 +0200124
125 <plugin>
126 <groupId>com.github.siom79.japicmp</groupId>
127 <artifactId>japicmp-maven-plugin</artifactId>
128 <version>${japicmp-version}</version>
129 <configuration>
130 <oldVersion>
131 <dependency>
132 <groupId>${project.groupId}</groupId>
133 <artifactId>${project.artifactId}</artifactId>
134 <version>${jgit-last-release-version}</version>
135 </dependency>
136 </oldVersion>
137 <newVersion>
138 <file>
139 <path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
140 </file>
141 </newVersion>
142 <parameter>
143 <onlyModified>true</onlyModified>
144 <includes>
145 <include>org.eclipse.jgit.*</include>
146 </includes>
147 <accessModifier>public</accessModifier>
148 <breakBuildOnModifications>false</breakBuildOnModifications>
149 <breakBuildOnBinaryIncompatibleModifications>false</breakBuildOnBinaryIncompatibleModifications>
150 <onlyBinaryIncompatible>false</onlyBinaryIncompatible>
151 <includeSynthetic>false</includeSynthetic>
152 <ignoreMissingClasses>false</ignoreMissingClasses>
153 <skipPomModules>true</skipPomModules>
154 </parameter>
155 <skip>false</skip>
156 </configuration>
157 <executions>
158 <execution>
159 <phase>verify</phase>
160 <goals>
161 <goal>cmp</goal>
162 </goals>
163 </execution>
164 </executions>
165 </plugin>
Jonathan Nieder56276d02013-05-24 17:30:18 -0700166 </plugins>
167 </build>
Matthias Sohn100179a2015-10-01 01:41:52 +0200168
169 <reporting>
170 <plugins>
171 <plugin>
172 <groupId>com.github.siom79.japicmp</groupId>
173 <artifactId>japicmp-maven-plugin</artifactId>
174 <version>${japicmp-version}</version>
175 <reportSets>
176 <reportSet>
177 <reports>
178 <report>cmp-report</report>
179 </reports>
180 </reportSet>
181 </reportSets>
182 <configuration>
183 <oldVersion>
184 <dependency>
185 <groupId>${project.groupId}</groupId>
186 <artifactId>${project.artifactId}</artifactId>
187 <version>${jgit-last-release-version}</version>
188 </dependency>
189 </oldVersion>
190 <newVersion>
191 <file>
192 <path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
193 </file>
194 </newVersion>
195 <parameter>
196 <onlyModified>true</onlyModified>
197 <includes>
198 <include>org.eclipse.jgit.*</include>
199 </includes>
200 <accessModifier>public</accessModifier>
201 <breakBuildOnModifications>false</breakBuildOnModifications>
202 <breakBuildOnBinaryIncompatibleModifications>false</breakBuildOnBinaryIncompatibleModifications>
203 <onlyBinaryIncompatible>false</onlyBinaryIncompatible>
204 <includeSynthetic>false</includeSynthetic>
205 <ignoreMissingClasses>false</ignoreMissingClasses>
206 <skipPomModules>true</skipPomModules>
207 </parameter>
208 <skip>false</skip>
209 </configuration>
210 </plugin>
211 </plugins>
212 </reporting>
Jonathan Nieder56276d02013-05-24 17:30:18 -0700213</project>