-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
218 lines (203 loc) · 8.07 KB
/
pom.xml
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
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.exmaple</groupId>
<artifactId>com.example.eclipse</artifactId>
<packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version>
<properties>
<!-- Tycho version to use -->
<tycho.version>0.18.0</tycho.version>
<tycho-extras-version>0.18.0</tycho-extras-version>
<!-- Avoid platform dependent build warning -->
<!-- Code files should also be in UTF-8 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- We wish to install the eclipse RCP product -->
<productIU>epp.package.rcp</productIU>
<profile>epp.package.rcp</profile>
<!-- We want to use the Kepler release -->
<eclipseRepo>http://download.eclipse.org/releases/kepler</eclipseRepo>
<!-- Windows 64-bit arch -->
<p2.os>win32</p2.os>
<p2.ws>win32</p2.ws>
<p2.arch>x86_64</p2.arch>
<!-- Desination directory -->
<productDestination>${project.build.directory}/eclipse/</productDestination>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-extras-version}</version>
<!-- Specify bundles and repositories to be able to run the director -->
<!-- Include basic + extras to handle old style update sites -->
<configuration>
<dependencies>
<dependency>
<artifactId>org.eclipse.equinox.p2.ql</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.core</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.console</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.transport.ecf</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.publisher</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.publisher.eclipse</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.repository</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.repository.tools</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.touchpoint.natives</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.touchpoint.eclipse</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.artifact.repository</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.operations</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.updatesite</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.metadata</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.metadata.repository</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.simpleconfigurator</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.director</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.director.app</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.ds</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.core.net</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
<!-- Repository to find p2 dependencies -->
<repositories>
<repository>
<id>juno</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/juno</url>
</repository>
</repositories>
</configuration>
<executions>
<!-- First of all instantiate a new product for a specific platform -->
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>prepare-package</phase>
<id>prepare-product</id>
<configuration>
<argLine>-Declipse.p2.mirrors=false</argLine>
<!-- Do not wrap -->
<appArgLine>-consoleLog -application org.eclipse.equinox.p2.director -nosplash -destination ${productDestination} -repository ${eclipseRepo} -installIUs ${productIU} -tag InitialState -profile ${profile} -profileProperties org.eclipse.update.install.features=true -p2.os ${p2.os} -p2.ws ${p2.ws} -p2.arch ${p2.arch} -roaming</appArgLine>
</configuration>
</execution>
<!-- Then install snapshot Mylyn Builds feature -->
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>prepare-package</phase>
<id>install-mylyn-builds</id>
<configuration>
<argLine>-Declipse.p2.mirrors=false</argLine>
<!-- Do not wrap -->
<appArgLine>-consoleLog -application org.eclipse.equinox.p2.director -nosplash -destination ${productDestination} -repository http://download.eclipse.org/mylyn/snapshots/weekly -installIUs org.eclipse.mylyn.hudson.feature.group -tag MylynBuilds -profile ${profile}</appArgLine>
</configuration>
</execution>
<!-- Then install EMF SDK features -->
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>prepare-package</phase>
<id>install-emf-sdk</id>
<configuration>
<argLine>-Declipse.p2.mirrors=false</argLine>
<!-- Do not wrap -->
<appArgLine>-consoleLog -application org.eclipse.equinox.p2.director -nosplash -destination ${productDestination} -repository ${eclipseRepo} -installIUs org.eclipse.emf.sdk.feature.group -tag EMFSDK -profile ${profile}</appArgLine>
</configuration>
</execution>
<!-- Then install 3rd party features -->
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>prepare-package</phase>
<id>install-others</id>
<configuration>
<argLine>-Declipse.p2.mirrors=false</argLine>
<!-- Do not wrap -->
<appArgLine>-consoleLog -application org.eclipse.equinox.p2.director -nosplash -destination ${productDestination} -repository http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.6.0/N/0.6.0.201210231015/,http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable,http://update.foglyn.com/stable,http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-buildhelper/0.15.0/N/0.15.0.201207090124/ -installIUs org.sonatype.tycho.m2e.feature.feature.group,com.foglyn.feature.group,mercurialeclipse.feature.group,org.sonatype.m2e.buildhelper.feature.feature.group -tag OtherFeatures -profile ${profile}</appArgLine>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>2.4</version>
<executions>
<execution>
<phase>package</phase>
<id>package-product</id>
<goals>
<goal>single</goal>
</goals>
<configuration>
<!-- Attaches the zip to the build so it can be stored in a maven repository -->
<attach>true</attach>
<outputDirectory>${project.build.directory}/</outputDirectory>
<descriptor>src/main/assembly/eclipse.xml</descriptor>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>