-
Notifications
You must be signed in to change notification settings - Fork 585
/
pom.xml
265 lines (233 loc) · 10.9 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
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
<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>
<parent>
<groupId>org.eclipse.collections</groupId>
<artifactId>eclipse-collections-parent</artifactId>
<version>10.3.0</version>
</parent>
<artifactId>p2-repository</artifactId>
<packaging>pom</packaging>
<name>Eclipse Collections p2 Repository Build</name>
<modules>
<module>org.eclipse.collections</module>
</modules>
<properties>
<!-- include everything from all dependencies by default -->
<recipe.includes>**/*</recipe.includes>
<!-- but filter out maven instructions, we'll generate new ones below -->
<recipe.excludes>META-INF/maven/**/*.*</recipe.excludes>
<!-- BND specific instructions which can be overridden by recipe -->
<recipe.Bundle-Name>%bundleName</recipe.Bundle-Name>
<recipe.Bundle-Description />
<recipe.Bundle-Vendor>%bundleVendor</recipe.Bundle-Vendor>
<!-- remove some clutter from the generated manifests -->
<recipe.removeheaders>
Ignore-Package,Include-Resource,Private-Package,Embed-Dependency,Built-By,Build-Jdk,Bnd-*,Tool
</recipe.removeheaders>
<!-- for Orbit, by default we'll also remove the Require-Bundle header; recipe poms may override if they need this header -->
<recipe.removeadditionalheaders>Require-Bundle</recipe.removeadditionalheaders>
<!-- read BND settings from 'osgi.bnd' located next to pom.xml -->
<recipe.bndfile>osgi.bnd</recipe.bndfile>
<!-- pattern/format used for the qualifier -->
<recipe.qualifier.format>'v'yyyyMMdd-HHmm</recipe.qualifier.format>
<!-- project defaults -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- versions used for plug-ins below -->
<tycho-version>1.7.0</tycho-version>
<!-- versions of the EBR plug-in to use -->
<ebr-version>1.2.0</ebr-version>
<!-- property for generating Eclipse source reference bundle headers -->
<tycho.scmUrl>scm:git:https://github.com/eclipse/eclipse-collections.git</tycho.scmUrl>
<!-- by default complain if working tree is dirty (error|warning|ignore) -->
<dirtyWorkingTree>warning</dirtyWorkingTree>
<!-- set default vendor -->
<bundleVendor>Eclipse Collections</bundleVendor>
<!-- values needed for generating repositories -->
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
<buildTimestamp>${maven.build.timestamp}</buildTimestamp>
<buildType>I</buildType>
<buildId>${buildType}${buildTimestamp}</buildId>
<buildLabel>${buildType}-${buildId}-${buildTimestamp}</buildLabel>
</properties>
<pluginRepositories>
<!-- configure the EBR plug-in repo -->
<pluginRepository>
<id>ebr-releases</id>
<url>https://repo.eclipse.org/content/repositories/ebr-releases/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>ebr-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/ebr-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>cbi-releases</id>
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>cbi-snapshots</id>
<url>https://repo.eclipse.org/content/repositories/cbi-snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<!-- configure default plug-ins -->
<!-- enable Tycho -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-core</artifactId>
<version>${tycho-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-facade</artifactId>
<version>${tycho-version}</version>
</dependency>
</dependencies>
</plugin>
<!-- target platform configuration -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<environments>
<environment>
<os>*</os>
<ws>*</ws>
<arch>*</arch>
</environment>
</environments>
<includePackedArtifacts>true</includePackedArtifacts>
</configuration>
</plugin>
<!-- configure build qualifier generation as well as source reference headers -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-sourceref-jgit</artifactId>
<version>${tycho-version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-buildtimestamp-jgit</artifactId>
<version>${tycho-version}</version>
</dependency>
</dependencies>
<configuration>
<!-- use qualifier from properties -->
<format>${recipe.qualifier.format}</format>
<!-- generate bundle .qualifier from Git tags/commits -->
<timestampProvider>jgit</timestampProvider>
<!-- allow to ignore dirty working trees -->
<jgit.dirtyWorkingTree>${dirtyWorkingTree}</jgit.dirtyWorkingTree>
<!-- generate source references -->
<sourceReferences>
<generate>true</generate>
</sourceReferences>
</configuration>
</plugin>
<!-- configure bundle build so that properties defined above will be considered -->
<plugin>
<groupId>org.eclipse.ebr</groupId>
<artifactId>ebr-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<includes>${recipe.includes}</includes>
<excludes>${recipe.excludes}</excludes>
<bndInstructions>
<Bundle-Name>${recipe.Bundle-Name}</Bundle-Name>
<Bundle-Vendor>${recipe.Bundle-Vendor}</Bundle-Vendor>
<Bundle-Description>${recipe.Bundle-Description}</Bundle-Description>
<_removeheaders>${recipe.removeheaders},${recipe.removeadditionalheaders}</_removeheaders>
<_include>-${recipe.bndfile}</_include>
</bndInstructions>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<!-- define versions and defaults for plug-ins used in Maven -->
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-source-feature-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-custom-bundle-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-p2-extras-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.ebr</groupId>
<artifactId>ebr-maven-plugin</artifactId>
<version>${ebr-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.ebr</groupId>
<artifactId>ebr-tycho-extras-plugin</artifactId>
<version>${ebr-version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>