-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
281 lines (265 loc) · 11.7 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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<!-- Should you want to build it locally, parent pom source is here: https://github.com/jbosstools/jbosstools-build/blob/master/parent/ -->
<parent>
<groupId>org.jboss.tools</groupId>
<artifactId>parent</artifactId>
<version>4.4.0.Alpha1-SNAPSHOT</version>
</parent>
<groupId>com.jboss.devstudio</groupId>
<artifactId>product</artifactId>
<version>10.0.0-SNAPSHOT</version>
<name>devstudio - Product, Installers</name>
<packaging>pom</packaging>
<modules>
<module>plugins</module>
<module>features</module>
<module>site</module>
<module>p2-director</module>
<module>installer</module>
<!-- JBIDE-20158 since results/ is the folder from which we publish, no need to run this unless we're deploying too <module>results</module> -->
</modules>
<!-- Should you want to build it locally, target platform sources are here: https://github.com/jbosstools/jbosstools-target-platforms/tree/4.60.x/ -->
<properties>
<tpc.group>jbdevstudio</tpc.group>
<!-- Do not hardcode this value, or we'll get GA-named bits when we do CRx maintenance builds. Instead set this flag in the job config for GA builds ONLY
<BUILD_ALIAS>GA</BUILD_ALIAS>
-->
<tpc.version>${TARGET_PLATFORM_VERSION_MAXIMUM}</tpc.version>
<tycho.scmUrl>scm:git:https://github.com/jbdevstudio/jbdevstudio-product.git</tycho.scmUrl>
<!-- JBDS-2805 used in results/pom.xml to provide link to Central zip -->
<central.tpc.version>4.60.0.Alpha1-SNAPSHOT</central.tpc.version>
<JBOSS_CENTRAL_ZIP>https://devstudio.redhat.com/${devstudioReleaseVersion}/snapshots/builds/jbosstools-build-sites.aggregate.central-site_${jbosstools_site_stream}/latest/all/repository.zip</JBOSS_CENTRAL_ZIP>
<!-- jbosstools_site_stream is set in parent pom = 4.4.neon / master -->
<!-- <jbosstools_site_stream>master</jbosstools_site_stream> -->
<jbosstools-site>http://download.jboss.org/jbosstools/${eclipseReleaseName}/snapshots/updates/core/${jbosstools_site_stream}/</jbosstools-site>
<!-- <jbosstools-target-site>http://download.jboss.org/jbosstools/targetplatforms/jbdevstudiotarget/4.40.0.CR1-SNAPSHOT/REPO/</jbosstools-target-site> -->
<!--
By default, use EAP 6.1.0.Alpha, which is publically available. This allows devstudio to be build locally w/o needing access to devel.redhat.com
To build the EAP bundled installer, use the "eap" profile: `mvn install -Peap`
-->
<eapVersion>6.1.0.Alpha</eapVersion>
<eapFilename>jboss-eap-${eapVersion}.zip</eapFilename>
<eapURL>http://download.jboss.org/jbosseap/6/jboss-eap-${eapVersion}/${eapFilename}</eapURL>
<eapMD5>21ab4c71230ca9fd311c265be24b6505</eapMD5>
<eapRootFolder>jboss-eap-6.1</eapRootFolder>
<buildEAPBundle>false</buildEAPBundle>
<devstudio.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${BUILD_ALIAS}</devstudio.version>
<p2StatsUrl>https://devstudio.redhat.com/usage/installs/local/${project.version}/${BUILD_ALIAS}/${buildQualifier}/</p2StatsUrl>
<!-- inherit from JBT parent pom <tychoVersion>0.23.1</tychoVersion> -->
</properties>
<build>
<plugins>
<!-- get major.minor.incremental from root pom, then use devstudio.version = ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.${BUILD_ALIAS} -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9.1</version>
<executions>
<execution>
<phase>validate</phase>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
<configuration>
<versionString>${project.version}</versionString>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>enforce-properversion</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>BUILD_ALIAS</property>
<message>BUILD_ALIAS is missing, it must be specified.</message>
<regex>.*((Alpha|Beta|CR)\d+[a-z]?)|GA</regex>
<regexMessage>The BUILD_ALIAS (${BUILD_ALIAS}) is invalid. Must contain either Alpha, Beta or CR with postfix, or be GA.</regexMessage>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!--
Addendum to "hudson" profile from parent pom. This adds the correct download URL for EAP 6.4 with CVE-2015-7501 patch, which is not a public URL (unlike 6.1.0.Alpha).
-->
<profile>
<id>hudson</id>
<properties>
<eapVersion>6.4</eapVersion>
<!-- http://download.devel.redhat.com/released/JBEAP-6/6.4.0-CVE-2015-7501/jboss-eap-6.4-CVE-2015-7501.zip -->
<eapFilename>jboss-eap-${eapVersion}-CVE-2015-7501.zip</eapFilename>
<eapURL>http://download.devel.redhat.com/released/JBEAP-6/${eapVersion}.0-CVE-2015-7501/${eapFilename}</eapURL>
<eapMD5>012ece485885174b7759e86953c50af6</eapMD5>
<eapRootFolder>jboss-eap-6.4</eapRootFolder>
<p2StatsUrl>https://devstudio.redhat.com/usage/installs/${JOB_NAME}/${project.version}/${BUILD_ALIAS}/${buildQualifier}/</p2StatsUrl>
</properties>
</profile>
<profile>
<id>local-sources</id>
<properties>
<skipBaselineComparison>true</skipBaselineComparison>
<mavanagaiata.skip>true</mavanagaiata.skip>
</properties>
<build>
<plugins>
<!-- disable git-based source reference generation in MANIFEST.MF -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tychoVersion}</version>
<configuration>
<sourceReferences>
<generate>false</generate>
</sourceReferences>
</configuration>
</plugin>
<!-- disable this from the site/pom.xml -->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.1.13</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- disable fetching sources from manifests and creation of HTML facade on update site -->
<plugin>
<groupId>org.jboss.tools.tycho-plugins</groupId>
<artifactId>repository-utils</artifactId>
<version>${jbossTychoPluginsVersion}</version>
<executions>
<execution>
<id>generate-facade</id>
<phase>package</phase>
<goals>
<goal>generate-repository-facade</goal>
</goals>
<configuration>
<skip>true</skip>
<skipBuildInfo>true</skipBuildInfo>
<skipWebContentGeneration>true</skipWebContentGeneration>
<fetch-sources-from-manifests.skip>true</fetch-sources-from-manifests.skip>
</configuration>
</execution>
<execution>
<id>fetch-sources</id>
<phase>package</phase>
<goals>
<goal>fetch-sources-from-manifests</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
Uncomment this profile to optionally enable a target platform site instead of (or in addition to) the default target platform.
Use -Dno-target-platform if you want to disable the default target platform in favour of a specified target platform site
mvn clean install -Dno-target-platform \
-Djbosstools-target-site=file:///path/to/jbosstools-target-platforms/jbdevstudio/multiple/target/jbdevstudio-multiple.target.repo/
-->
<!-- <profile>
<id>target-site</id>
<activation>
<property>
<name>jbosstools-target-site</name>
</property>
</activation>
<repositories>
<repository>
<id>jbosstools-target-site</id>
<layout>p2</layout>
<url>${jbosstools-target-site}</url>
</repository>
</repositories>
</profile> -->
</profiles>
<repositories>
<repository>
<id>jboss-releases</id>
<name>JBoss Releases Maven Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>jboss-snapshots-repository</id>
<name>JBoss Snapshots Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<!-- since JBT site is no longer set in parent pom, must explicitly define it here -->
<repository>
<id>jbosstools-site</id>
<layout>p2</layout>
<url>${jbosstools-site}</url>
</repository>
</repositories>
<!-- Additional m2 repos to resolve things like org.eclipse.tycho:tycho-maven-plugin:0.16.0-SNAPSHOT -->
<!-- JBoss Nexus repos are also added, but in settings.xml -->
<pluginRepositories>
<pluginRepository>
<id>sonatype-public-grid</id>
<url>https://repository.sonatype.org/content/groups/sonatype-public-grid</url>
</pluginRepository>
<pluginRepository>
<id>sonatype-public-repository</id>
<url>https://oss.sonatype.org/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<id>jboss-releases</id>
<name>JBoss Releases Maven Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>jboss-snapshots-repository</id>
<name>JBoss Snapshots Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
<!--
Build product features, site, and installers like this:
mvn clean install
To replicate a Jenkins CI build, run like this (unified.target and hudson profile require VPN access):
mvn clean install -P hudson,eap,pack200 -Dtpc.version=4.60.0.Alpha1-SNAPSHOT -DBUILD_NUMBER=460000 -DJOB_NAME=devstudio.product_master -Dupdate.site.description="Development Milestone" -Djbosstools_site_stream=master
See README.md for information building, installing, contributing, generated artifacts, and more.
-->