Update Maven plugins to latest versions
[egit/eclipse.git] / pom.xml
blob971e847c6497bab496e37b35591e402ead896b18
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>5.7.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     <egit-version>5.7.0-SNAPSHOT</egit-version>
64     <tycho-version>1.6.0</tycho-version>
65     <tycho-extras-version>${tycho-version}</tycho-extras-version>
66     <jboss-tycho-plugins-version>1.5.1</jboss-tycho-plugins-version>
67     <spotbugs-maven-plugin-version>3.1.12</spotbugs-maven-plugin-version>
68     <jgit-site>file:/${basedir}/../../jgit/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/target/repository</jgit-site>
69     <license-site>https://download.eclipse.org/cbi/updates/license</license-site>
70     <signer-input-directory>/home/data/httpd/download-staging.priv/egit</signer-input-directory>
71     <download-publish-path>/home/data/httpd/download.eclipse.org/egit/updates-nightly</download-publish-path>
72     <target-platform>egit-4.6</target-platform>
73     <tycho.scmUrl>scm:git:https://git.eclipse.org/r/egit/egit.git</tycho.scmUrl>
74     <egit.test.tmpdir></egit.test.tmpdir>
75     <test.vmparams></test.vmparams>
76     <coretest.vmparams>-Degit.test.tmpdir=${egit.test.tmpdir}</coretest.vmparams>
77     <uitest.vmparams>-Degit.test.tmpdir=${egit.test.tmpdir} -Dorg.eclipse.swtbot.search.timeout=30000 -Dorg.eclipse.swtbot.screenshots.dir=target/screenshots -Xmx1024m</uitest.vmparams>
78     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
79     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
80   </properties>
82   <profiles>
83     <profile>
84       <id>static-checks</id>
85       <build>
86         <plugins>
87           <plugin>
88             <groupId>com.github.spotbugs</groupId>
89             <artifactId>spotbugs-maven-plugin</artifactId>
90           </plugin>
91           <plugin>
92             <groupId>org.apache.maven.plugins</groupId>
93             <artifactId>maven-pmd-plugin</artifactId>
94           </plugin>
95         </plugins>
96       </build>
97     </profile>
98     <profile>
99       <id>eclipse-sign</id>
100       <build>
101         <plugins>
102           <plugin>
103             <groupId>org.eclipse.tycho</groupId>
104             <artifactId>target-platform-configuration</artifactId>
105             <configuration>
106               <includePackedArtifacts>true</includePackedArtifacts>
107             </configuration>
108           </plugin>
109           <plugin>
110             <groupId>org.eclipse.tycho.extras</groupId>
111             <artifactId>tycho-pack200a-plugin</artifactId>
112             <executions>
113               <execution>
114                 <id>pack200-normalize</id>
115                 <goals>
116                   <goal>normalize</goal>
117                 </goals>
118                 <phase>verify</phase>
119               </execution>
120             </executions>
121           </plugin>
122           <plugin>
123             <groupId>org.eclipse.cbi.maven.plugins</groupId>
124             <artifactId>eclipse-jarsigner-plugin</artifactId>
125             <executions>
126               <execution>
127                 <id>sign</id>
128                 <goals>
129                   <goal>sign</goal>
130                 </goals>
131                 <phase>verify</phase>
132               </execution>
133             </executions>
134           </plugin>
135           <plugin>
136             <groupId>org.eclipse.tycho.extras</groupId>
137             <artifactId>tycho-pack200b-plugin</artifactId>
138             <executions>
139               <execution>
140                 <id>pack200-pack</id>
141                 <goals>
142                   <goal>pack</goal>
143                 </goals>
144                 <phase>verify</phase>
145               </execution>
146             </executions>
147           </plugin>
148           <plugin>
149             <groupId>org.eclipse.tycho</groupId>
150             <artifactId>tycho-p2-plugin</artifactId>
151             <executions>
152               <execution>
153                 <id>p2-metadata</id>
154                 <goals>
155                   <goal>p2-metadata</goal>
156                 </goals>
157                 <phase>verify</phase>
158               </execution>
159             </executions>
160             <configuration>
161               <defaultP2Metadata>false</defaultP2Metadata>
162             </configuration>
163           </plugin>
164         </plugins>
165       </build>
166     </profile>
167     <profile>
168       <id>eclipse-pack</id>
169       <build>
170         <plugins>
171           <plugin>
172             <groupId>org.eclipse.tycho</groupId>
173             <artifactId>target-platform-configuration</artifactId>
174             <configuration>
175               <includePackedArtifacts>true</includePackedArtifacts>
176             </configuration>
177           </plugin>
178           <plugin>
179             <groupId>org.eclipse.tycho.extras</groupId>
180             <artifactId>tycho-pack200a-plugin</artifactId>
181             <executions>
182               <execution>
183                 <id>pack200-normalize</id>
184                 <goals>
185                   <goal>normalize</goal>
186                 </goals>
187               </execution>
188             </executions>
189           </plugin>
190           <plugin>
191             <groupId>org.eclipse.tycho.extras</groupId>
192             <artifactId>tycho-pack200b-plugin</artifactId>
193             <executions>
194               <execution>
195                 <id>pack200-pack</id>
196                 <goals>
197                   <goal>pack</goal>
198                 </goals>
199               </execution>
200             </executions>
201           </plugin>
202           <plugin>
203             <groupId>org.eclipse.tycho</groupId>
204             <artifactId>tycho-p2-plugin</artifactId>
205             <executions>
206               <execution>
207                 <id>p2-metadata</id>
208                 <goals>
209                   <goal>p2-metadata</goal>
210                 </goals>
211                 <phase>package</phase>
212               </execution>
213             </executions>
214             <configuration>
215               <defaultP2Metadata>false</defaultP2Metadata>
216             </configuration>
217           </plugin>
218         </plugins>
219       </build>
220     </profile>
221     <profile>
222       <id>macosx</id>
223       <activation>
224         <os>
225           <name>mac os x</name>
226           <family>mac</family>
227         </os>
228       </activation>
229       <properties>
230         <ui.test.vmargs>${test.vmparams} ${uitest.vmparams} -XstartOnFirstThread</ui.test.vmargs>
231       </properties>
232     </profile>
233     <profile>
234       <id>other-os</id>
235       <activation>
236         <os>
237           <name>not-mac</name>
238           <family>!mac</family>
239         </os>
240       </activation>
241       <properties>
242         <ui.test.vmargs>${test.vmparams} ${uitest.vmparams}</ui.test.vmargs>
243       </properties>
244     </profile>
245   </profiles>
247   <modules>
248     <module>org.eclipse.egit.target</module>
250     <module>org.eclipse.egit</module>
251     <module>org.eclipse.egit.core</module>
252     <module>org.eclipse.egit.ui</module>
254     <module>org.eclipse.egit.mylyn.ui</module>
255     <module>org.eclipse.egit.mylyn-feature</module>
257     <module>org.eclipse.egit.doc</module>
258     <module>org.eclipse.egit-feature</module>
260     <module>org.eclipse.egit.gitflow-feature</module>
261         <module>org.eclipse.egit.gitflow</module>
262         <module>org.eclipse.egit.gitflow.ui</module>
263     <module>org.eclipse.egit.gitflow.test</module>
265     <module>org.eclipse.egit.source-feature</module>
267     <module>org.eclipse.egit.repository</module>
269     <module>org.eclipse.egit.core.junit</module>
270     <module>org.eclipse.egit.core.test</module>
271     <module>org.eclipse.egit.ui.test</module>
272     <module>org.eclipse.egit.mylyn.ui.test</module>
273   </modules>
275   <pluginRepositories>
276     <pluginRepository>
277       <id>repo.eclipse.org.cbi-releases</id>
278       <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
279     </pluginRepository>
280     <pluginRepository>
281       <id>repo.eclipse.org.cbi-snapshots</id>
282       <url>https://repo.eclipse.org/content/repositories/cbi-snapshots/</url>
283     </pluginRepository>
284   </pluginRepositories>
286   <repositories>
287     <repository>
288       <id>jgit</id>
289       <layout>p2</layout>
290       <url>${jgit-site}</url>
291     </repository>
292     <repository>
293       <id>eclipse.license</id>
294       <layout>p2</layout>
295       <url>${license-site}</url>
296     </repository>
297   </repositories>
299   <build>
300     <plugins>
301       <plugin>
302         <groupId>org.apache.maven.plugins</groupId>
303         <artifactId>maven-enforcer-plugin</artifactId>
304         <executions>
305           <execution>
306             <id>enforce-maven</id>
307             <goals>
308               <goal>enforce</goal>
309             </goals>
310             <configuration>
311               <rules>
312                 <requireMavenVersion>
313                   <version>3.5.2</version>
314                 </requireMavenVersion>
315               </rules>
316             </configuration>
317           </execution>
318         </executions>
319       </plugin>
320       <plugin>
321         <groupId>org.eclipse.tycho</groupId>
322         <artifactId>tycho-maven-plugin</artifactId>
323         <extensions>true</extensions>
324       </plugin>
325       <plugin>
326         <groupId>org.eclipse.tycho</groupId>
327         <artifactId>target-platform-configuration</artifactId>
328         <configuration>
329           <target>
330             <artifact>
331               <groupId>org.eclipse.egit</groupId>
332               <artifactId>org.eclipse.egit.target</artifactId>
333               <version>${egit-version}</version>
334               <classifier>${target-platform}</classifier>
335             </artifact>
336           </target>
337           <resolver>p2</resolver>
338           <pomDependencies>consider</pomDependencies>
339           <environments>
340             <environment>
341               <os>linux</os>
342               <ws>gtk</ws>
343               <arch>x86</arch>
344             </environment>
345             <environment>
346               <os>linux</os>
347               <ws>gtk</ws>
348               <arch>x86_64</arch>
349             </environment>
350             <environment>
351               <os>win32</os>
352               <ws>win32</ws>
353               <arch>x86</arch>
354             </environment>
355             <environment>
356               <os>win32</os>
357               <ws>win32</ws>
358               <arch>x86_64</arch>
359             </environment>
360             <environment>
361               <os>macosx</os>
362               <ws>cocoa</ws>
363               <arch>x86_64</arch>
364             </environment>
365           </environments>
366         </configuration>
367       </plugin>
368     </plugins>
369     <pluginManagement>
370       <plugins>
371         <!-- Tycho plugins -->
372         <plugin>
373           <groupId>org.eclipse.tycho</groupId>
374           <artifactId>tycho-compiler-plugin</artifactId>
375           <version>${tycho-version}</version>
376           <configuration>
377             <encoding>UTF-8</encoding>
378             <source>1.8</source>
379             <target>1.8</target>
380             <!-- Do not use useProjectSettings; it'll always override -nowarn -->
381             <useProjectSettings>false</useProjectSettings>
382             <compilerArgs>
383               <arg>-properties</arg>
384               <arg>${project.basedir}/.settings/org.eclipse.jdt.core.prefs</arg>
385               <arg>-nowarn</arg>
386             </compilerArgs>
387           </configuration>
388         </plugin>
389         <plugin>
390           <groupId>org.eclipse.tycho</groupId>
391           <artifactId>tycho-source-plugin</artifactId>
392           <version>${tycho-version}</version>
393           <executions>
394             <execution>
395               <id>attach-source</id>
396               <goals>
397                 <goal>plugin-source</goal>
398               </goals>
399             </execution>
400           </executions>
401         </plugin>
402         <plugin>
403           <groupId>org.eclipse.tycho</groupId>
404           <artifactId>tycho-packaging-plugin</artifactId>
405           <version>${tycho-version}</version>
406           <configuration>
407             <sourceReferences>
408               <generate>true</generate>
409             </sourceReferences>
410           </configuration>
411           <dependencies>
412             <dependency>
413               <groupId>org.eclipse.tycho.extras</groupId>
414               <artifactId>tycho-sourceref-jgit</artifactId>
415               <version>${tycho-extras-version}</version>
416             </dependency>
417           </dependencies>
418         </plugin>
419         <plugin>
420           <groupId>org.eclipse.tycho</groupId>
421           <artifactId>tycho-surefire-plugin</artifactId>
422           <version>${tycho-version}</version>
423           <configuration>
424             <trimStackTrace>false</trimStackTrace>
425           </configuration>
426         </plugin>
427         <plugin>
428           <groupId>org.eclipse.tycho</groupId>
429           <artifactId>tycho-maven-plugin</artifactId>
430           <version>${tycho-version}</version>
431         </plugin>
432         <plugin>
433           <groupId>org.eclipse.tycho</groupId>
434           <artifactId>target-platform-configuration</artifactId>
435           <version>${tycho-version}</version>
436         </plugin>
437         <plugin>
438           <groupId>org.eclipse.tycho</groupId>
439           <artifactId>tycho-p2-plugin</artifactId>
440           <version>${tycho-version}</version>
441         </plugin>
442         <plugin>
443           <groupId>org.eclipse.tycho</groupId>
444           <artifactId>tycho-p2-publisher-plugin</artifactId>
445           <version>${tycho-version}</version>
446         </plugin>
447         <plugin>
448           <groupId>org.eclipse.tycho</groupId>
449           <artifactId>tycho-p2-repository-plugin</artifactId>
450           <version>${tycho-version}</version>
451         </plugin>
452         <plugin>
453           <groupId>org.eclipse.tycho.extras</groupId>
454           <artifactId>tycho-pack200a-plugin</artifactId>
455           <version>${tycho-extras-version}</version>
456         </plugin>
457         <plugin>
458           <groupId>org.eclipse.tycho.extras</groupId>
459           <artifactId>tycho-pack200b-plugin</artifactId>
460           <version>${tycho-extras-version}</version>
461         </plugin>
462         <plugin>
463           <groupId>org.jboss.tools.tycho-plugins</groupId>
464           <artifactId>repository-utils</artifactId>
465           <version>${jboss-tycho-plugins-version}</version>
466         </plugin>
467         <!-- other plugins -->
468         <plugin>
469           <groupId>org.apache.maven.plugins</groupId>
470           <artifactId>maven-enforcer-plugin</artifactId>
471           <version>3.0.0-M3</version>
472         </plugin>
473         <plugin>
474           <groupId>org.apache.maven.plugins</groupId>
475           <artifactId>maven-antrun-plugin</artifactId>
476           <version>1.8</version>
477         </plugin>
478         <plugin>
479           <groupId>com.github.spotbugs</groupId>
480           <artifactId>spotbugs-maven-plugin</artifactId>
481           <version>${spotbugs-maven-plugin-version}</version>
482           <configuration>
483             <xmlOutput>true</xmlOutput>
484             <failOnError>false</failOnError>
485           </configuration>
486           <executions>
487             <execution>
488               <goals>
489                 <goal>check</goal>
490               </goals>
491             </execution>
492           </executions>
493         </plugin>
494         <plugin>
495           <groupId>org.apache.maven.plugins</groupId>
496           <artifactId>maven-pmd-plugin</artifactId>
497           <version>3.12.0</version>
498           <configuration>
499             <sourceEncoding>utf-8</sourceEncoding>
500             <minimumTokens>100</minimumTokens>
501             <targetJdk>1.8</targetJdk>
502             <format>xml</format>
503             <failOnViolation>false</failOnViolation>
504             <linkXRef>false</linkXRef>
505           </configuration>
506           <executions>
507             <execution>
508               <goals>
509                 <goal>cpd-check</goal>
510               </goals>
511             </execution>
512           </executions>
513         </plugin>
514         <plugin>
515           <groupId>org.apache.maven.plugins</groupId>
516           <artifactId>maven-assembly-plugin</artifactId>
517           <version>3.2.0</version>
518         </plugin>
519         <plugin>
520           <groupId>org.codehaus.mojo</groupId>
521           <artifactId>build-helper-maven-plugin</artifactId>
522           <version>3.0.0</version>
523         </plugin>
524         <plugin>
525           <groupId>org.eclipse.cbi.maven.plugins</groupId>
526           <artifactId>eclipse-jarsigner-plugin</artifactId>
527           <version>1.1.5</version>
528         </plugin>
529       </plugins>
530     </pluginManagement>
531   </build>
533   <distributionManagement>
534     <repository>
535       <id>repo.eclipse.org</id>
536       <name>EGit Maven Repository - Releases</name>
537       <url>https://repo.eclipse.org/content/repositories/egit-releases/</url>
538     </repository>
539     <snapshotRepository>
540       <id>repo.eclipse.org</id>
541       <name>EGit Maven Repository - Snapshots</name>
542       <url>https://repo.eclipse.org/content/repositories/egit-snapshots/</url>
543       <uniqueVersion>true</uniqueVersion>
544     </snapshotRepository>
545   </distributionManagement>
546 </project>