blob: 5bb6949f1b91969aeacb270f591ec4882a95de78 [file] [log] [blame]
Mickael Istria5973bbb2016-10-28 09:43:21 +02001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4
5 <groupId>org.eclipse.simrel</groupId>
6 <artifactId>build</artifactId>
Frederic Gurrf16fcc02019-06-21 11:23:23 +02007 <version>4.12.0-SNAPSHOT</version>
Mickael Istria5973bbb2016-10-28 09:43:21 +02008 <packaging>pom</packaging>
9
10 <properties>
Alexander Kurtakova6a2b6f2019-02-26 13:38:15 +020011 <tycho-version>1.3.0</tycho-version>
Frederic Gurrf16fcc02019-06-21 11:23:23 +020012 <trainName>2019-09</trainName>
13 <referenceRepo>releases/2019-06/201906191000</referenceRepo>
Frederic Gurr1f259a52019-07-01 13:17:16 +020014 <eclipse.repo.url>https://download.eclipse.org/eclipse/updates/4.12/R-4.12-201906051800/</eclipse.repo.url>
15 <simrel.aggregator.repo.url>https://download.eclipse.org/cbi/updates/aggregator/headless/4.8/</simrel.aggregator.repo.url>
16 <cbi.analyzers.repo.url>https://download.eclipse.org/cbi/updates/analyzers/4.7</cbi.analyzers.repo.url>
Mickael Istria5973bbb2016-10-28 09:43:21 +020017 </properties>
18
19 <build>
20 <plugins>
21 <plugin>
22 <groupId>org.eclipse.tycho.extras</groupId>
23 <artifactId>tycho-eclipserun-plugin</artifactId>
24 <version>${tycho-version}</version>
25 <executions>
26 <execution>
27 <id>build-repo</id>
28 <phase>package</phase>
29 <goals>
30 <goal>eclipse-run</goal>
31 </goals>
32 <configuration>
33 <applicationsArgs>
34 <applicationsArg>-application</applicationsArg>
35 <applicationsArg>org.eclipse.cbi.p2repo.cli.headless</applicationsArg>
36 <applicationsArg>aggregate</applicationsArg>
37 <applicationsArg>--buildModel</applicationsArg>
38 <applicationsArg>${project.basedir}/simrel.aggr</applicationsArg>
39 <applicationsArg>--buildRoot</applicationsArg>
40 <applicationsArg>${project.build.directory}/repository</applicationsArg>
41 <applicationsArg>--eclipseLogLevel</applicationsArg>
42 <applicationsArg>INFO</applicationsArg>
43 <applicationsArg>--logLevel</applicationsArg>
44 <applicationsArg>INFO</applicationsArg>
45 <applicationsArg>--action</applicationsArg>
46 <applicationsArg>CLEAN_BUILD</applicationsArg>
47 </applicationsArgs>
48 <executionEnvironment>JavaSE-1.8</executionEnvironment>
49 <jvmArgs>
50 <jvmArg>-Xms256M</jvmArg>
51 <jvmArg>-Xmx2048M</jvmArg>
52 </jvmArgs>
53 <repositories>
54 <repository>
55 <id>eclipse</id>
56 <url>${eclipse.repo.url}</url>
57 <layout>p2</layout>
58 </repository>
59 <repository>
60 <id>simrel-aggregator</id>
61 <url>${simrel.aggregator.repo.url}</url>
62 <layout>p2</layout>
63 </repository>
64 </repositories>
65 <dependencies>
66 <dependency>
67 <artifactId>org.eclipse.cbi.p2repo.aggregator.engine.feature.feature.group</artifactId>
68 <type>p2-installable-unit</type>
69 </dependency>
70 <dependency>
71 <artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
72 <type>eclipse-feature</type>
73 </dependency>
74 <dependency>
75 <artifactId>org.eclipse.equinox.core.feature</artifactId>
76 <type>eclipse-feature</type>
77 </dependency>
78 </dependencies>
79 </configuration>
80 </execution>
81 <execution>
82 <phase>verify</phase>
83 <id>repo-reports</id>
84 <goals>
85 <goal>eclipse-run</goal>
86 </goals>
87 <configuration>
88 <applicationsArgs>
89 <arg>-application</arg>
90 <arg>org.eclipse.cbi.p2repo.analyzers.repoReport</arg>
91 </applicationsArgs>
92 <jvmArgs>
93 <jvmArg>-DreportRepoDir=${project.build.directory}/repository/final</jvmArg>
94 <jvmArg>-DreportOutputDir=${project.build.directory}/repository/final/buildInfo</jvmArg>
Frederic Gurr77c496c2017-12-14 20:50:47 +010095 <jvmArg>-DreferenceRepo=/home/data/httpd/download.eclipse.org/${referenceRepo}</jvmArg>
Mickael Istria5973bbb2016-10-28 09:43:21 +020096 <jvmArg>-Xms256M</jvmArg>
97 <jvmArg>-Xmx2048M</jvmArg>
98 </jvmArgs>
99 <executionEnvironment>JavaSE-1.8</executionEnvironment>
100 <dependencies>
101 <dependency>
102 <artifactId>org.eclipse.cbi.p2repo.analyzers</artifactId>
103 <type>eclipse-plugin</type>
104 </dependency>
105 <dependency>
106 <artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
107 <type>eclipse-feature</type>
108 </dependency>
109 <dependency>
110 <artifactId>org.eclipse.equinox.core.feature</artifactId>
111 <type>eclipse-feature</type>
112 </dependency>
Frederic Gurr77c496c2017-12-14 20:50:47 +0100113 </dependencies>
Mickael Istria5973bbb2016-10-28 09:43:21 +0200114 <repositories>
115 <repository>
116 <id>cbi-analyzers</id>
117 <url>${cbi.analyzers.repo.url}</url>
118 <layout>p2</layout>
119 </repository>
120 <repository>
121 <id>eclipse</id>
122 <url>${eclipse.repo.url}</url>
123 <layout>p2</layout>
124 </repository>
125 </repositories>
126 </configuration>
127 </execution>
128 </executions>
129 </plugin>
130 </plugins>
131 </build>
Frederic Gurr0872f172019-03-20 18:17:17 +0100132
Mickael Istria5973bbb2016-10-28 09:43:21 +0200133 <profiles>
134 <profile>
135 <id>validate</id>
136 <build>
137 <plugins>
138 <plugin>
139 <groupId>org.eclipse.tycho.extras</groupId>
140 <artifactId>tycho-eclipserun-plugin</artifactId>
141 <version>${tycho-version}</version>
142 <executions>
143 <execution>
144 <id>validate-repo</id>
145 <phase>test</phase>
146 <goals>
147 <goal>eclipse-run</goal>
148 </goals>
149 <configuration>
150 <applicationsArgs>
151 <applicationsArg>-application</applicationsArg>
152 <applicationsArg>org.eclipse.cbi.p2repo.cli.headless</applicationsArg>
153 <applicationsArg>aggregate</applicationsArg>
154 <applicationsArg>--buildModel</applicationsArg>
155 <applicationsArg>${project.basedir}/simrel.aggr</applicationsArg>
156 <applicationsArg>--buildRoot</applicationsArg>
157 <applicationsArg>${project.build.directory}/repository</applicationsArg>
158 <applicationsArg>--eclipseLogLevel</applicationsArg>
159 <applicationsArg>INFO</applicationsArg>
160 <applicationsArg>--logLevel</applicationsArg>
161 <applicationsArg>INFO</applicationsArg>
162 <applicationsArg>--action</applicationsArg>
163 <applicationsArg>VALIDATE</applicationsArg>
164 </applicationsArgs>
165 <jvmArgs>
166 <jvmArg>-Xms256M</jvmArg>
167 <jvmArg>-Xmx2048M</jvmArg>
168 </jvmArgs>
169 <executionEnvironment>JavaSE-1.8</executionEnvironment>
170 <repositories>
171 <repository>
172 <id>eclipse</id>
173 <url>${eclipse.repo.url}</url>
174 <layout>p2</layout>
175 </repository>
176 <repository>
177 <id>simrel-aggregator</id>
178 <url>${simrel.aggregator.repo.url}</url>
179 <layout>p2</layout>
180 </repository>
181 </repositories>
182 <dependencies>
183 <dependency>
184 <artifactId>org.eclipse.cbi.p2repo.aggregator.engine.feature.feature.group</artifactId>
185 <type>p2-installable-unit</type>
186 </dependency>
187 <dependency>
188 <artifactId>org.eclipse.equinox.p2.core.feature</artifactId>
189 <type>eclipse-feature</type>
190 </dependency>
191 <dependency>
192 <artifactId>org.eclipse.equinox.core.feature</artifactId>
193 <type>eclipse-feature</type>
194 </dependency>
195 </dependencies>
196 </configuration>
197 </execution>
198 </executions>
199 </plugin>
200 </plugins>
201 </build>
202 </profile>
203 <profile>
204 <id>built-at-eclipse.org</id>
205 <build>
206 <plugins>
207 <plugin>
208 <groupId>com.google.code.maven-replacer-plugin</groupId>
209 <artifactId>replacer</artifactId>
210 <version>1.5.2</version>
211 <executions>
212 <execution>
213 <id>replace-url-to-local</id>
214 <phase>generate-sources</phase>
215 <goals>
216 <goal>replace</goal>
217 </goals>
218 <configuration>
219 <basedir>${project.basedir}</basedir>
220 <includes>
221 <include>*.aggr</include>
222 <include>*.aggrcon</include>
223 </includes>
224 <replacements>
225 <replacement>
Frederic Gurr1f259a52019-07-01 13:17:16 +0200226 <token>https://download.eclipse.org</token>
Mickael Istria5973bbb2016-10-28 09:43:21 +0200227 <value>file:/home/data/httpd/download.eclipse.org</value>
228 </replacement>
229 </replacements>
230 </configuration>
231 </execution>
232 </executions>
233 </plugin>
234 </plugins>
235 </build>
236 </profile>
237 <profile>
238 <id>production</id>
239 <build>
240 <plugins>
241 <plugin>
242 <groupId>org.eclipse.tycho.extras</groupId>
243 <artifactId>tycho-eclipserun-plugin</artifactId>
244 <executions>
245 <execution>
246 <id>build-repo</id>
247 <configuration>
248 <applicationsArgs combine.children="append">
249 <applicationsArg>--production</applicationsArg>
Frederic Gurr78d54072018-09-06 16:52:45 +0200250 <applicationsArg>emailFrom ci-admin@eclipse.org</applicationsArg>
Mickael Istria5973bbb2016-10-28 09:43:21 +0200251 <applicationsArg>--emailFromName</applicationsArg>
252 <applicationsArg>${trainName}Aggregator</applicationsArg>
253 <applicationsArg>--logURL</applicationsArg>
254 <applicationsArg>${BUILD_URL}/console</applicationsArg>
255 <applicationsArg>--subjectPrefix</applicationsArg>
256 <applicationsArg>${trainName}Aggregation</applicationsArg>
257 </applicationsArgs>
258 </configuration>
259 </execution>
260 </executions>
261 </plugin>
262 </plugins>
263 </build>
264 </profile>
265 </profiles>
Frederic Gurr0872f172019-03-20 18:17:17 +0100266
Mickael Istria5973bbb2016-10-28 09:43:21 +0200267</project>