Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: fc27a8506832af52f6daaf8d96669cd33d163d67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<?xml version="1.0" encoding="UTF-8"?>
<!-- - Copyright (c) 2014 SAP AG and others. - All rights reserved. This 
	program and the accompanying materials - are made available under the terms 
	of the Eclipse Public License v1.0 - which accompanies this distribution, 
	and is available at - http://www.eclipse.org/legal/epl-v10.html - - Contributors: 
	- SAP AG - initial API and implementation -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<artifactId>tycho</artifactId>
		<groupId>org.eclipse.tycho</groupId>
		<version>1.5.0-SNAPSHOT</version>
	</parent>

	<artifactId>tycho-releng</artifactId>
	<packaging>pom</packaging>

	<name>Tycho Releng</name>
	<description>Helper POM for deploying Eclipse artifacts which Tycho needs to get from a Maven repository</description>

	<!-- To update the Eclipse artifacts needed by the Maven class-loader side 
		of Tycho: 
		1. If needed, update the source p2 repository below 
		2. Update Equinox and JDT/APT versions in the parent POM: ${equinoxVersion[Maven]}, ${jdtVersion[Maven]}, 
		${jdtAptVersion[Maven]} 
		3a. For deploying snapshots (to be used by Tycho 
		snapshots) - In tycho-releng/, execute mvn clean deploy -DforgeSnapshotUrl=https://oss.sonatype.org/content/repositories/snapshots 
		-DforgeSnapshotId=forge-snapshots 
		3b. For deploying releases (to be used 
		by Tycho releases): 
		- Prerequisite: you need to have GPG properly set up, 
		see https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven 
		- Make sure that ${jdtVersionMaven}, ${jdtAptVersionMaven}, ${equinoxVersionMaven} 
		in the parent POM don't have a '-SNAPSHOT' suffix - In tycho-releng/, execute 
		mvn clean deploy -Pdeploy-releases -DforgeReleaseUrl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DforgeReleaseId=forge-releases -Dgpg.passphrase=<your_passphrase> 
		- Close 
		and release staged artifacts into repository 'Releases' -->
	<properties>
		<downloaded>${project.build.directory}/repository/plugins/</downloaded>
		<!-- don't deploy this helper pom -->
		<maven.deploy.skip>true</maven.deploy.skip>
	</properties>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
				<includes>
					<include>**/*.pom</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
				<excludes>
					<exclude>**/*.pom</exclude>
				</excludes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<executions>
					<execution>
						<id>filter-resources</id>
						<goals>
							<goal>resources</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho.extras</groupId>
				<artifactId>tycho-p2-extras-plugin</artifactId>
				<version>${tychoBootstrapVersion}</version>
				<!-- 
				<executions>
					<execution>
						<phase>validate</phase>
						<goals>
							<goal>mirror</goal>
						</goals>
					</execution>
				</executions>
				-->
				<configuration>
					<source>
						<repository>
							<url>http://download.eclipse.org/releases/photon/201806271001/</url>
							<layout>p2</layout>
						</repository>
					</source>
					<ius>
						<iu>
							<id>org.eclipse.osgi</id>
							<version>${equinoxVersion}</version>
						</iu>
						<iu>
							<id>org.eclipse.osgi.source</id>
							<version>${equinoxVersion}</version>
						</iu>
						<iu>
							<id>org.eclipse.osgi.compatibility.state</id>
							<version>${equinoxCompatVersion}</version>
						</iu>
						<iu>
							<id>org.eclipse.osgi.compatibility.state.source</id>
							<version>${equinoxCompatVersion}</version>
						</iu>
					</ius>
					<followStrictOnly>true</followStrictOnly>
				</configuration>
			</plugin>
			<plugin>
				<groupId>com.googlecode.maven-download-plugin</groupId>
				<artifactId>download-maven-plugin</artifactId>
				<version>1.4.1</version>
				<executions>
					<execution>
						<id>download-ecj</id>
						<phase>validate</phase>
						<goals>
							<goal>wget</goal>
						</goals>
						<configuration>
							<url>http://download.eclipse.org/eclipse/downloads/drops4/${ecjVersion}/ecj-${ecjVersion}.jar</url>
							<outputDirectory>${project.build.directory}</outputDirectory>
						</configuration>
					</execution>
					<execution>
						<id>download-ecj-sources</id>
						<phase>validate</phase>
						<goals>
							<goal>wget</goal>
						</goals>
						<configuration>
							<url>http://download.eclipse.org/eclipse/downloads/drops4/${ecjVersion}/ecjsrc-${ecjVersion}.jar</url>
							<outputDirectory>${project.build.directory}</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.1</version>
					<configuration>
						<url>${forgeSnapshotUrl}</url>
						<repositoryId>${forgeSnapshotId}</repositoryId>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<profiles>
		<profile>
			<id>deploy-ecj-snapshot</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-deploy-plugin</artifactId>
						<executions>
							<execution>
								<id>deploy-ecj</id>
								<phase>deploy</phase>
								<goals>
									<goal>deploy-file</goal>
								</goals>
								<configuration>
									<file>${project.build.directory}/ecj-${ecjVersion}.jar</file>
									<sources>${project.build.directory}/ecjsrc-${ecjVersion}.jar</sources>
									<pomFile>${project.build.outputDirectory}/org.eclipse.jdt.ecj.pom</pomFile>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>deploy-equinox-snapshots</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-deploy-plugin</artifactId>
						<executions>
							<execution>
								<id>deploy-equinox</id>
								<phase>deploy</phase>
								<goals>
									<goal>deploy-file</goal>
								</goals>
								<configuration>
									<file>${downloaded}/org.eclipse.osgi_${equinoxVersion}.jar</file>
									<sources>${downloaded}/org.eclipse.osgi.source_${equinoxVersion}.jar</sources>
									<pomFile>${project.build.outputDirectory}/org.eclipse.osgi.pom</pomFile>
								</configuration>
							</execution>
							<execution>
								<id>deploy-equinox-compat</id>
								<phase>deploy</phase>
								<goals>
									<goal>deploy-file</goal>
								</goals>
								<configuration>
									<file>${downloaded}/org.eclipse.osgi.compatibility.state_${equinoxCompatVersion}.jar</file>
									<sources>${downloaded}/org.eclipse.osgi.compatibility.state.source_${equinoxCompatVersion}.jar</sources>
									<pomFile>${project.build.outputDirectory}/org.eclipse.osgi.compatibility.state.pom</pomFile>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>deploy-releases</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.4</version>
						<configuration>
							<repositoryId>${forgeReleaseId}</repositoryId>
							<url>${forgeReleaseUrl}</url>
						</configuration>
						<executions>
							<execution>
								<id>deploy-ecj</id>
								<phase>deploy</phase>
								<goals>
									<goal>sign-and-deploy-file</goal>
								</goals>
								<configuration>
									<file>${project.build.directory}/ecj-${ecjVersion}.jar</file>
									<sources>${project.build.directory}/ecjsrc-${ecjVersion}.jar</sources>
									<pomFile>${project.build.outputDirectory}/org.eclipse.jdt.ecj.pom</pomFile>
								</configuration>
							</execution>
							<execution>
								<id>deploy-equinox</id>
								<phase>deploy</phase>
								<goals>
									<goal>sign-and-deploy-file</goal>
								</goals>
								<configuration>
									<file>${downloaded}/org.eclipse.osgi_${equinoxVersion}.jar</file>
									<sources>${downloaded}/org.eclipse.osgi.source_${equinoxVersion}.jar</sources>
									<pomFile>${project.build.outputDirectory}/org.eclipse.osgi.pom</pomFile>
								</configuration>
							</execution>
							<execution>
								<id>deploy-equinox-compat</id>
								<phase>deploy</phase>
								<goals>
									<goal>sign-and-deploy-file</goal>
								</goals>
								<configuration>
									<file>${downloaded}/org.eclipse.osgi.compatibility.state_${equinoxCompatVersion}.jar</file>
									<sources>${downloaded}/org.eclipse.osgi.compatibility.state.source_${equinoxCompatVersion}.jar</sources>
									<pomFile>${project.build.outputDirectory}/org.eclipse.osgi.compatibility.state.pom</pomFile>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>

Back to the top