PGP sign p2 artefacts
[egit/eclipse.git] / pom.xml
blob4d9c07befed02a69bf8679d5ecee9013e55df4b9
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (C) 2009, Igor Fedorenko <igor@ifedorenko.com>
4    Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com>
5    Copyright (C) 2011-2012 Matthias Sohn <matthias.sohn@sap.com>
7    All rights reserved. This program and the accompanying materials
8    are made available under the terms of the Eclipse Public License 2.0
9    which accompanies this distribution, and is available at
10    https://www.eclipse.org/legal/epl-2.0/
12    SPDX-License-Identifier: EPL-2.0
13 -->
15 <project xmlns="http://maven.apache.org/POM/4.0.0"
16     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
18   <modelVersion>4.0.0</modelVersion>
20   <groupId>org.eclipse.egit</groupId>
21   <artifactId>egit-parent</artifactId>
22   <version>6.6.0-SNAPSHOT</version>
23   <packaging>pom</packaging>
25   <name>EGit Parent</name>
27   <mailingLists>
28     <mailingList>
29       <name>egit-dev Mailing List</name>
30       <post>egit-dev@eclipse.org</post>
31       <subscribe>https://dev.eclipse.org/mailman/listinfo/egit-dev</subscribe>
32       <unsubscribe>https://dev.eclipse.org/mailman/listinfo/egit-dev</unsubscribe>
33       <archive>https://dev.eclipse.org/mhonarc/lists/egit-dev</archive>
34     </mailingList>
36     <mailingList>
37       <name>GIT Mailing List</name>
38       <post>git@vger.kernel.org</post>
39       <archive>https://marc.info/?l=git</archive>
40     </mailingList>
41   </mailingLists>
43   <issueManagement>
44     <url>https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced;product=EGit;classification=Technology</url>
45     <system>Bugzilla</system>
46   </issueManagement>
48   <licenses>
49     <license>
50       <name>Eclipse Public License 2.0</name>
51       <comments>
52         All rights reserved. This program and the accompanying materials
53         are made available under the terms of the Eclipse Public License 2.0
54         which accompanies this distribution, and is available at
55         https://www.eclipse.org/legal/epl-2.0/
57         SPDX-License-Identifier: EPL-2.0
58       </comments>
59     </license>
60   </licenses>
62   <properties>
63     <maven-version-minimum>3.6.3</maven-version-minimum>
64     <egit-version>6.6.0-SNAPSHOT</egit-version>
65     <tycho-version>2.7.5</tycho-version>
66     <java-version>11</java-version>
67     <ecj-version>3.33.0</ecj-version>
68     <spotbugs-maven-plugin-version>4.7.3.4</spotbugs-maven-plugin-version>
69     <jgit-site>file:/${basedir}/../../jgit/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/target/repository</jgit-site>
70     <license-site>https://download.eclipse.org/cbi/updates/license</license-site>
71     <signer-input-directory>/home/data/httpd/download-staging.priv/egit</signer-input-directory>
72     <download-publish-path>/home/data/httpd/download.eclipse.org/egit/updates-nightly</download-publish-path>
73     <target-platform>egit-4.26</target-platform>
74     <tycho.scmUrl>scm:git:https://git.eclipse.org/r/egit/egit.git</tycho.scmUrl>
75     <egit.test.tmpdir></egit.test.tmpdir>
76     <test.vmparams></test.vmparams>
77     <coretest.vmparams>-Degit.test.tmpdir=${egit.test.tmpdir}</coretest.vmparams>
78     <uitest.vmparams>-Degit.test.tmpdir=${egit.test.tmpdir} -Dorg.eclipse.swtbot.search.timeout=30000 -Dorg.eclipse.swtbot.screenshots.dir=target/screenshots -Xmx1024m</uitest.vmparams>
79     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
80     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
81     <!-- license check -->
82     <dash.fail>true</dash.fail>
83     <dash.projectId>technology.egit</dash.projectId>
84   </properties>
86   <profiles>
87     <profile>
88       <id>static-checks</id>
89       <build>
90         <plugins>
91           <plugin>
92             <groupId>com.github.spotbugs</groupId>
93             <artifactId>spotbugs-maven-plugin</artifactId>
94           </plugin>
95           <plugin>
96             <groupId>org.apache.maven.plugins</groupId>
97             <artifactId>maven-pmd-plugin</artifactId>
98           </plugin>
99         </plugins>
100       </build>
101     </profile>
102     <profile>
103       <id>eclipse-sign</id>
104       <build>
105         <plugins>
106           <plugin>
107             <groupId>org.eclipse.tycho</groupId>
108             <artifactId>target-platform-configuration</artifactId>
109             <configuration>
110               <includePackedArtifacts>true</includePackedArtifacts>
111             </configuration>
112           </plugin>
113           <plugin>
114             <groupId>org.eclipse.cbi.maven.plugins</groupId>
115             <artifactId>eclipse-jarsigner-plugin</artifactId>
116             <executions>
117               <execution>
118                 <id>sign</id>
119                 <goals>
120                   <goal>sign</goal>
121                 </goals>
122                 <phase>verify</phase>
123               </execution>
124             </executions>
125           </plugin>
126           <plugin>
127             <groupId>org.eclipse.tycho</groupId>
128             <artifactId>tycho-p2-plugin</artifactId>
129             <executions>
130               <execution>
131                 <id>p2-metadata</id>
132                 <goals>
133                   <goal>p2-metadata</goal>
134                 </goals>
135                 <phase>verify</phase>
136               </execution>
137             </executions>
138             <configuration>
139               <defaultP2Metadata>false</defaultP2Metadata>
140             </configuration>
141           </plugin>
142         </plugins>
143       </build>
144     </profile>
145     <profile>
146       <id>macosx</id>
147       <activation>
148         <os>
149           <name>mac os x</name>
150           <family>mac</family>
151         </os>
152       </activation>
153       <properties>
154         <ui.test.vmargs>${test.vmparams} ${uitest.vmparams} -XstartOnFirstThread</ui.test.vmargs>
155       </properties>
156     </profile>
157     <profile>
158       <id>other-os</id>
159       <activation>
160         <os>
161           <name>not-mac</name>
162           <family>!mac</family>
163         </os>
164       </activation>
165       <properties>
166         <ui.test.vmargs>${test.vmparams} ${uitest.vmparams}</ui.test.vmargs>
167       </properties>
168     </profile>
169   </profiles>
171   <modules>
172     <module>org.eclipse.egit.target</module>
174     <module>org.eclipse.egit</module>
175     <module>org.eclipse.egit.core</module>
176     <module>org.eclipse.egit.ui</module>
178     <module>org.eclipse.egit.doc</module>
179     <module>org.eclipse.egit-feature</module>
181     <module>org.eclipse.egit.gitflow-feature</module>
182         <module>org.eclipse.egit.gitflow</module>
183         <module>org.eclipse.egit.gitflow.ui</module>
184     <module>org.eclipse.egit.gitflow.test</module>
186     <module>org.eclipse.egit.source-feature</module>
188     <module>org.eclipse.egit.repository</module>
190     <module>org.eclipse.egit.core.junit</module>
191     <module>org.eclipse.egit.core.test</module>
192     <module>org.eclipse.egit.ui.test</module>
193   </modules>
195   <pluginRepositories>
196     <pluginRepository>
197       <id>repo.eclipse.org.cbi-releases</id>
198       <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
199     </pluginRepository>
200     <pluginRepository>
201       <id>repo.eclipse.org.cbi-snapshots</id>
202       <url>https://repo.eclipse.org/content/repositories/cbi-snapshots/</url>
203     </pluginRepository>
204     <pluginRepository>
205       <id>repo.eclipse.org.dash-releases</id>
206       <url>https://repo.eclipse.org/content/repositories/dash-licenses-releases/</url>
207     </pluginRepository>
208   </pluginRepositories>
210   <repositories>
211     <repository>
212       <id>jgit</id>
213       <layout>p2</layout>
214       <url>${jgit-site}</url>
215     </repository>
216     <repository>
217       <id>eclipse.license</id>
218       <layout>p2</layout>
219       <url>${license-site}</url>
220     </repository>
221   </repositories>
223   <build>
224     <plugins>
225       <plugin>
226         <groupId>org.apache.maven.plugins</groupId>
227         <artifactId>maven-enforcer-plugin</artifactId>
228         <executions>
229           <execution>
230             <id>enforce-maven</id>
231             <goals>
232               <goal>enforce</goal>
233             </goals>
234             <configuration>
235               <rules>
236                 <requireMavenVersion>
237                   <version>${maven-version-minimum}</version>
238                 </requireMavenVersion>
239               </rules>
240             </configuration>
241           </execution>
242         </executions>
243       </plugin>
244       <plugin>
245         <groupId>org.eclipse.tycho</groupId>
246         <artifactId>tycho-maven-plugin</artifactId>
247         <extensions>true</extensions>
248       </plugin>
249       <plugin>
250         <groupId>org.eclipse.tycho</groupId>
251         <artifactId>target-platform-configuration</artifactId>
252         <configuration>
253           <target>
254             <file>${project.basedir}/../org.eclipse.egit.target/${target-platform}.target</file>
255           </target>
256           <resolver>p2</resolver>
257           <pomDependencies>consider</pomDependencies>
258           <environments>
259             <environment>
260               <os>linux</os>
261               <ws>gtk</ws>
262               <arch>x86_64</arch>
263             </environment>
264             <environment>
265               <os>win32</os>
266               <ws>win32</ws>
267               <arch>x86_64</arch>
268             </environment>
269             <environment>
270               <os>macosx</os>
271               <ws>cocoa</ws>
272               <arch>x86_64</arch>
273             </environment>
274             <environment>
275               <os>macosx</os>
276               <ws>cocoa</ws>
277               <arch>aarch64</arch>
278             </environment>
279           </environments>
280         </configuration>
281       </plugin>
282       <plugin>
283         <groupId>org.eclipse.dash</groupId>
284         <artifactId>license-tool-plugin</artifactId>
285         <version>1.0.2</version>
286         <executions>
287           <execution>
288             <id>license-check</id>
289             <goals>
290               <goal>license-check</goal>
291             </goals>
292           </execution>
293         </executions>
294         <configuration>
295           <excludeScope>test</excludeScope>
296         </configuration>
297       </plugin>
298     </plugins>
299     <pluginManagement>
300       <plugins>
301         <!-- Tycho plugins -->
302         <plugin>
303           <groupId>org.eclipse.tycho</groupId>
304           <artifactId>tycho-compiler-plugin</artifactId>
305           <version>${tycho-version}</version>
306           <configuration>
307             <encoding>UTF-8</encoding>
308             <release>${java-version}</release>
309             <!-- Do not use useProjectSettings; it'll always override -nowarn -->
310             <useProjectSettings>false</useProjectSettings>
311             <compilerArgs>
312               <arg>-properties</arg>
313               <arg>${project.basedir}/.settings/org.eclipse.jdt.core.prefs</arg>
314               <arg>-nowarn</arg>
315             </compilerArgs>
316           </configuration>
317           <dependencies>
318               <dependency>
319                 <groupId>org.eclipse.jdt</groupId>
320                 <artifactId>ecj</artifactId>
321                 <version>${ecj-version}</version>
322               </dependency>
323           </dependencies>
324         </plugin>
325         <plugin>
326           <groupId>org.eclipse.tycho</groupId>
327           <artifactId>tycho-source-plugin</artifactId>
328           <version>${tycho-version}</version>
329           <executions>
330             <execution>
331               <id>attach-source</id>
332               <goals>
333                 <goal>plugin-source</goal>
334               </goals>
335             </execution>
336           </executions>
337         </plugin>
338         <plugin>
339           <groupId>org.eclipse.tycho</groupId>
340           <artifactId>tycho-packaging-plugin</artifactId>
341           <version>${tycho-version}</version>
342           <configuration>
343             <sourceReferences>
344               <generate>true</generate>
345             </sourceReferences>
346           </configuration>
347           <dependencies>
348             <dependency>
349               <groupId>org.eclipse.tycho.extras</groupId>
350               <artifactId>tycho-sourceref-jgit</artifactId>
351               <version>${tycho-version}</version>
352             </dependency>
353           </dependencies>
354         </plugin>
355         <plugin>
356           <groupId>org.eclipse.tycho</groupId>
357           <artifactId>tycho-surefire-plugin</artifactId>
358           <version>${tycho-version}</version>
359           <configuration>
360             <trimStackTrace>false</trimStackTrace>
361             <useJDK>BREE</useJDK>
362           </configuration>
363         </plugin>
364         <plugin>
365           <groupId>org.eclipse.tycho</groupId>
366           <artifactId>tycho-maven-plugin</artifactId>
367           <version>${tycho-version}</version>
368         </plugin>
369         <plugin>
370           <groupId>org.eclipse.tycho</groupId>
371           <artifactId>target-platform-configuration</artifactId>
372           <version>${tycho-version}</version>
373         </plugin>
374         <plugin>
375           <groupId>org.eclipse.tycho</groupId>
376           <artifactId>tycho-p2-plugin</artifactId>
377           <version>${tycho-version}</version>
378         </plugin>
379         <plugin>
380           <groupId>org.eclipse.tycho</groupId>
381           <artifactId>tycho-p2-publisher-plugin</artifactId>
382           <version>${tycho-version}</version>
383         </plugin>
384         <plugin>
385           <groupId>org.eclipse.tycho</groupId>
386           <artifactId>tycho-p2-repository-plugin</artifactId>
387           <version>${tycho-version}</version>
388         </plugin>
389         <plugin>
390           <groupId>org.eclipse.tycho</groupId>
391           <artifactId>tycho-gpg-plugin</artifactId>
392           <version>${tycho-version}</version>
393         </plugin>
394         <!-- other plugins -->
395         <plugin>
396           <groupId>org.apache.maven.plugins</groupId>
397           <artifactId>maven-enforcer-plugin</artifactId>
398           <version>3.3.0</version>
399         </plugin>
400         <plugin>
401           <groupId>org.apache.maven.plugins</groupId>
402           <artifactId>maven-antrun-plugin</artifactId>
403           <version>3.1.0</version>
404         </plugin>
405         <plugin>
406           <groupId>com.github.spotbugs</groupId>
407           <artifactId>spotbugs-maven-plugin</artifactId>
408           <version>${spotbugs-maven-plugin-version}</version>
409           <configuration>
410             <excludeFilterFile>${project.basedir}/../spotbugs-excludes.xml</excludeFilterFile>
411             <xmlOutput>true</xmlOutput>
412             <failOnError>false</failOnError>
413           </configuration>
414           <executions>
415             <execution>
416               <goals>
417                 <goal>check</goal>
418               </goals>
419             </execution>
420           </executions>
421         </plugin>
422         <plugin>
423           <groupId>org.apache.maven.plugins</groupId>
424           <artifactId>maven-pmd-plugin</artifactId>
425           <version>3.20.0</version>
426           <configuration>
427             <sourceEncoding>utf-8</sourceEncoding>
428             <minimumTokens>100</minimumTokens>
429             <targetJdk>${java-version}</targetJdk>
430             <format>xml</format>
431             <failOnViolation>false</failOnViolation>
432             <linkXRef>false</linkXRef>
433           </configuration>
434           <executions>
435             <execution>
436               <goals>
437                 <goal>cpd-check</goal>
438               </goals>
439             </execution>
440           </executions>
441         </plugin>
442         <plugin>
443           <groupId>org.apache.maven.plugins</groupId>
444           <artifactId>maven-assembly-plugin</artifactId>
445           <version>3.5.0</version>
446         </plugin>
447         <plugin>
448           <groupId>org.eclipse.cbi.maven.plugins</groupId>
449           <artifactId>eclipse-jarsigner-plugin</artifactId>
450           <version>1.3.5</version>
451         </plugin>
452       </plugins>
453     </pluginManagement>
454   </build>
456   <distributionManagement>
457     <repository>
458       <id>repo.eclipse.org</id>
459       <name>EGit Maven Repository - Releases</name>
460       <url>https://repo.eclipse.org/content/repositories/egit-releases/</url>
461     </repository>
462     <snapshotRepository>
463       <id>repo.eclipse.org</id>
464       <name>EGit Maven Repository - Snapshots</name>
465       <url>https://repo.eclipse.org/content/repositories/egit-snapshots/</url>
466       <uniqueVersion>true</uniqueVersion>
467     </snapshotRepository>
468   </distributionManagement>
469 </project>