Merge "The History view date format is hard-coded"
[egit/eclipse.git] / org.eclipse.egit-updatesite / pom.xml
blobd148cfb5c3362439bd4da8a84e6db0bb59572eda
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (C) 2009, Igor Fedorenko <igor@ifedorenko.com>
4    Copyright (C) 2011, Chris Aniszczyk <caniszczyk@gmail.com>
5    Copyright (C) 2011, 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 v1.0
9    which accompanies this distribution, and is available at
10    http://www.eclipse.org/legal/epl-v10.html
11 -->
13 <project xmlns="http://maven.apache.org/POM/4.0.0"
14     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
16   <modelVersion>4.0.0</modelVersion>
18   <parent>
19     <groupId>org.eclipse.egit</groupId>
20     <artifactId>egit-parent</artifactId>
21     <version>1.3.0-SNAPSHOT</version>
22   </parent>
24   <artifactId>org.eclipse.egit-updatesite</artifactId>
25   <packaging>eclipse-update-site</packaging>
27   <name>Eclipse Git Plugin Update Site</name>
29   <build>
30     <plugins>
31       <plugin>
32         <groupId>org.apache.maven.plugins</groupId>
33         <artifactId>maven-assembly-plugin</artifactId>
34         <configuration>
35           <descriptors>
36             <descriptor>assembly.xml</descriptor>
37           </descriptors>
38         </configuration>
39         <executions>
40           <execution>
41             <id>make-assembly</id>
42             <phase>package</phase>
43             <goals>
44               <goal>single</goal>
45             </goals>
46           </execution>
47         </executions>
48       </plugin>
50       <plugin>
51         <artifactId>maven-resources-plugin</artifactId>
52         <executions>
53           <execution>
54             <id>copy-resources</id>
55             <phase>validate</phase>
56             <goals>
57               <goal>copy-resources</goal>
58             </goals>
59             <configuration>
60               <outputDirectory>${basedir}/target/site</outputDirectory>
61               <resources>
62                 <resource>
63                   <directory>.</directory>
64                   <includes>
65                     <include>index.html</include>
66                     <include>web/*</include>
67                   </includes>
68                 </resource>
69               </resources>
70             </configuration>
71           </execution>
72         </executions>
73       </plugin>
74     </plugins>
75   </build>
77   <profiles>
78     <profile>
79      <id>build-server</id>
80      <build>
81        <plugins>
82          <plugin>
83            <groupId>org.eclipse.dash.maven</groupId>
84            <artifactId>eclipse-signing-maven-plugin</artifactId>
85            <executions>
86              <execution>
87                <id>pack</id>
88                <configuration>
89                  <inputFile>${project.build.directory}/org.eclipse.egit-updatesite-${project.version}-site.zip</inputFile>
90                </configuration>
91                <phase>package</phase>
92                <goals>
93                  <goal>pack</goal>
94                </goals>
95              </execution>
96              <execution>
97                <id>sign</id>
98                <configuration>
99                  <inputFile>${project.build.directory}/org.eclipse.egit-updatesite-${project.version}-site.zip</inputFile>
100                  <signerInputDirectory>${signer-input-directory}</signerInputDirectory>
101                </configuration>
102                <phase>package</phase>
103                <goals>
104                  <goal>sign</goal>
105                </goals>
106              </execution>
107              <execution>
108                <id>repack</id>
109                <configuration>
110                  <inputFile>${project.build.directory}/signed/site_assembly.zip</inputFile>
111                </configuration>
112                <phase>package</phase>
113                <goals>
114                  <goal>pack</goal>
115                </goals>
116              </execution>
117              <execution>
118                <id>fixCheckSums</id>
119                <phase>package</phase>
120                <goals>
121                  <goal>fixCheckSums</goal>
122                </goals>
123              </execution>
124            </executions>
125          </plugin>
126          <plugin>
127              <artifactId>maven-antrun-plugin</artifactId>
128              <executions>
129                <execution>
130                  <id>deploy</id>
131                  <phase>install</phase>
132                  <goals>
133                    <goal>run</goal>
134                  </goals>
135                  <configuration>
136                    <tasks>
137                      <delete includeemptydirs="false">
138                        <fileset
139                          dir="${download-publish-path}">
140                          <include name="**" />
141                        </fileset>
142                      </delete>
143                      <copy includeemptydirs="false"
144                        todir="${download-publish-path}">
145                        <fileset dir="target/checksumFix">
146                          <include name="**" />
147                        </fileset>
148                      </copy>
149                    </tasks>
150                  </configuration>
151                </execution>
152              </executions>
153            </plugin>
154         </plugins>
155       </build>
156     </profile>
157   </profiles>
159 </project>