| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
| 7 | <parent> |
| 8 | <artifactId>org.eclipse.tracecompass.rcp-parent</artifactId> |
| 9 | <groupId>org.eclipse.tracecompass</groupId> |
| 10 | <version>2.3.0-SNAPSHOT</version> |
| 11 | </parent> |
| 12 | |
| 13 | <artifactId>org.eclipse.tracecompass.rcp.product</artifactId> |
| 14 | <packaging>eclipse-repository</packaging> |
| 15 | |
| 16 | <name>Trace Compass RCP Product</name> |
| 17 | |
| 18 | <properties> |
| 19 | <productId>org.eclipse.tracecompass.rcp</productId> |
| 20 | <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format> |
| 21 | <archiveFileName>trace-compass-${unqualifiedVersion}-${build.timestamp}</archiveFileName> |
| 22 | <rootFolder>trace-compass</rootFolder> |
| 23 | <!-- for MacOSX, make sure you use a folder ending with .app , see bug 463670 --> |
| 24 | <rootFolderMac>${rootFolder}.app</rootFolderMac> |
| 25 | </properties> |
| 26 | |
| 27 | <build> |
| 28 | <plugins> |
| 29 | <plugin> |
| 30 | <groupId>org.eclipse.tycho</groupId> |
| 31 | <artifactId>tycho-p2-director-plugin</artifactId> |
| 32 | <version>${tycho-version}</version> |
| 33 | <executions> |
| 34 | <execution> |
| 35 | <id>materialize-products</id> |
| 36 | <goals> |
| 37 | <goal>materialize-products</goal> |
| 38 | </goals> |
| 39 | </execution> |
| 40 | <execution> |
| 41 | <id>archive-products</id> |
| 42 | <goals> |
| 43 | <goal>archive-products</goal> |
| 44 | </goals> |
| 45 | <configuration> |
| 46 | <formats> |
| 47 | <linux>tar.gz</linux> |
| 48 | <macosx>tar.gz</macosx> |
| 49 | <solaris>zip</solaris> |
| 50 | <win32>zip</win32> |
| 51 | </formats> |
| 52 | </configuration> |
| 53 | </execution> |
| 54 | </executions> |
| 55 | <configuration> |
| 56 | <products> |
| 57 | <product> |
| 58 | <archiveFileName>${archiveFileName}</archiveFileName> |
| 59 | <id>${productId}</id> |
| 60 | <rootFolder>${rootFolder}</rootFolder> |
| 61 | <rootFolders> |
| 62 | <macosx>${rootFolderMac}</macosx> |
| 63 | </rootFolders> |
| 64 | </product> |
| 65 | </products> |
| 66 | <source>repository</source> |
| 67 | </configuration> |
| 68 | </plugin> |
| 69 | </plugins> |
| 70 | </build> |
| 71 | |
| 72 | <profiles> |
| 73 | <profile> |
| 74 | <id>sign-update-site</id> |
| 75 | <build> |
| 76 | <plugins> |
| 77 | <plugin> |
| 78 | <groupId>org.eclipse.tycho</groupId> |
| 79 | <artifactId>tycho-p2-director-plugin</artifactId> |
| 80 | <version>${tycho-version}</version> |
| 81 | <executions> |
| 82 | <execution> |
| 83 | <id>materialize-products</id> |
| 84 | <goals> |
| 85 | <goal>materialize-products</goal> |
| 86 | </goals> |
| 87 | </execution> |
| 88 | <execution> |
| 89 | <id>archive-products</id> |
| 90 | <phase>pre-integration-test</phase> |
| 91 | <goals> |
| 92 | <goal>archive-products</goal> |
| 93 | </goals> |
| 94 | <configuration> |
| 95 | <formats> |
| 96 | <linux>tar.gz</linux> |
| 97 | <macosx>tar.gz</macosx> |
| 98 | <solaris>zip</solaris> |
| 99 | <win32>zip</win32> |
| 100 | </formats> |
| 101 | </configuration> |
| 102 | </execution> |
| 103 | </executions> |
| 104 | <configuration> |
| 105 | <products> |
| 106 | <product> |
| 107 | <archiveFileName>${archiveFileName}</archiveFileName> |
| 108 | <id>${productId}</id> |
| 109 | <rootFolder>${rootFolder}</rootFolder> |
| 110 | <rootFolders> |
| 111 | <macosx>${rootFolderMac}</macosx> |
| 112 | </rootFolders> |
| 113 | </product> |
| 114 | </products> |
| 115 | <source>repository</source> |
| 116 | </configuration> |
| 117 | </plugin> |
| 118 | <plugin> |
| 119 | <groupId>org.eclipse.cbi.maven.plugins</groupId> |
| 120 | <artifactId>eclipse-macsigner-plugin</artifactId> |
| 121 | <version>${cbi-plugins.version}</version> |
| 122 | <executions> |
| 123 | <execution> |
| 124 | <goals> |
| 125 | <goal>sign</goal> |
| 126 | </goals> |
| 127 | <configuration> |
| 128 | <signFiles> |
| 129 | <signFile>${project.build.directory}/products/${productId}/macosx/cocoa/x86_64/${rootFolderMac}</signFile> |
| 130 | </signFiles> |
| 131 | </configuration> |
| 132 | </execution> |
| 133 | </executions> |
| 134 | </plugin> |
| 135 | </plugins> |
| 136 | </build> |
| 137 | </profile> |
| 138 | <!-- Deploy RCP builds and update site to the downloads area --> |
| 139 | <profile> |
| 140 | <id>deploy-rcp</id> |
| 141 | <properties> |
| 142 | <rcpDestination>/home/data/httpd/download.eclipse.org/tracecompass/master/rcp/</rcpDestination> |
| 143 | <rcpSiteDestination>/home/data/httpd/download.eclipse.org/tracecompass/master/rcp-repository/</rcpSiteDestination> |
| 144 | </properties> |
| 145 | <build> |
| 146 | <plugins> |
| 147 | <plugin> |
| 148 | <artifactId>maven-antrun-plugin</artifactId> |
| 149 | <executions> |
| 150 | <execution> |
| 151 | <id>deploy</id> |
| 152 | <phase>install</phase> |
| 153 | <goals> |
| 154 | <goal>run</goal> |
| 155 | </goals> |
| 156 | <configuration> |
| 157 | <target> |
| 158 | <!-- Cleanup the "rcp" destination, and copy over the new archives --> |
| 159 | <delete includeemptydirs="false"> |
| 160 | <fileset dir="${rcpDestination}"> |
| 161 | <include name="*.tar.gz" /> |
| 162 | <include name="*.zip" /> |
| 163 | </fileset> |
| 164 | </delete> |
| 165 | <copy includeemptydirs="false" todir="${rcpDestination}"> |
| 166 | <fileset dir="target/products"> |
| 167 | <include name="trace-compass-*" /> |
| 168 | </fileset> |
| 169 | </copy> |
| 170 | |
| 171 | <!-- Cleanup the "rcp-repository" update site, and copy over the new one --> |
| 172 | <delete includeemptydirs="false"> |
| 173 | <fileset |
| 174 | dir="${rcpSiteDestination}"> |
| 175 | <include name="**" /> |
| 176 | </fileset> |
| 177 | </delete> |
| 178 | <copy includeemptydirs="false" todir="${rcpSiteDestination}"> |
| 179 | <fileset dir="target/repository"> |
| 180 | <include name="**" /> |
| 181 | </fileset> |
| 182 | </copy> |
| 183 | </target> |
| 184 | </configuration> |
| 185 | </execution> |
| 186 | </executions> |
| 187 | </plugin> |
| 188 | </plugins> |
| 189 | </build> |
| 190 | </profile> |
| 191 | <profile> |
| 192 | <id>build-one-rcp</id> |
| 193 | <build> |
| 194 | <plugins> |
| 195 | <plugin> |
| 196 | <groupId>org.eclipse.tycho</groupId> |
| 197 | <artifactId>target-platform-configuration</artifactId> |
| 198 | <configuration> |
| 199 | <environments> |
| 200 | <environment> |
| 201 | <os>linux</os> |
| 202 | <ws>gtk</ws> |
| 203 | <arch>x86_64</arch> |
| 204 | </environment> |
| 205 | </environments> |
| 206 | </configuration> |
| 207 | </plugin> |
| 208 | </plugins> |
| 209 | </build> |
| 210 | </profile> |
| 211 | </profiles> |
| 212 | </project> |