Skip to content

Commit 841662d

Browse files
committed
Update p2 profile
Ensure that the plain p2 repository is also build without using the p2-release profile. The p2-release profile is now only used to create the composite updatesite that is used for nightly versions.
1 parent 9395253 commit 841662d

3 files changed

Lines changed: 23 additions & 46 deletions

File tree

pom.xml

Lines changed: 20 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@
239239
<artifactId>tycho-versions-plugin</artifactId>
240240
<version>${tycho.version}</version>
241241
</plugin>
242+
<plugin>
243+
<groupId>org.eclipse.tycho</groupId>
244+
<artifactId>tycho-p2-repository-plugin</artifactId>
245+
<version>${tycho.version}</version>
246+
</plugin>
247+
<plugin>
248+
<groupId>org.eclipse.tycho</groupId>
249+
<artifactId>tycho-p2-plugin</artifactId>
250+
<version>${tycho.version}</version>
251+
</plugin>
242252
</plugins>
243253
</pluginManagement>
244254
<plugins>
@@ -261,23 +271,9 @@
261271
<showWarnings>true</showWarnings>
262272
</configuration>
263273
</plugin>
264-
<plugin>
265-
<!-- enable source bundle generation -->
266-
<groupId>org.eclipse.tycho</groupId>
267-
<artifactId>tycho-source-plugin</artifactId>
268-
<executions>
269-
<execution>
270-
<id>plugin-source</id>
271-
<goals>
272-
<goal>plugin-source</goal>
273-
</goals>
274-
</execution>
275-
</executions>
276-
</plugin>
277274
<plugin>
278275
<groupId>org.eclipse.tycho</groupId>
279276
<artifactId>tycho-versions-plugin</artifactId>
280-
<version>${tycho.version}</version>
281277
</plugin>
282278
<plugin>
283279
<groupId>org.eclipse.tycho</groupId>
@@ -312,38 +308,16 @@
312308
</target>
313309
</configuration>
314310
</plugin>
315-
</plugins>
316-
</build>
317-
</profile>
318-
319-
<!-- P2-Release Profile: Used to build and Eclipse update site. Should
320-
only be used in conjunction with the P2 Profile -->
321-
<profile>
322-
<id>p2-release</id>
323-
<activation>
324-
<activeByDefault>false</activeByDefault>
325-
</activation>
326-
327-
<build>
328-
<pluginManagement>
329-
<plugins>
330-
<plugin>
331-
<groupId>org.eclipse.tycho</groupId>
332-
<artifactId>tycho-p2-repository-plugin</artifactId>
333-
<version>${tycho.version}</version>
334-
</plugin>
335-
<plugin>
336-
<groupId>org.eclipse.tycho</groupId>
337-
<artifactId>tycho-p2-plugin</artifactId>
338-
<version>${tycho.version}</version>
339-
</plugin>
340-
</plugins>
341-
</pluginManagement>
342-
<plugins>
343311
<plugin>
344312
<groupId>org.eclipse.tycho</groupId>
345313
<artifactId>tycho-source-plugin</artifactId>
346314
<executions>
315+
<execution>
316+
<id>plugin-source</id>
317+
<goals>
318+
<goal>plugin-source</goal>
319+
</goals>
320+
</execution>
347321
<execution>
348322
<id>feature-source</id>
349323
<phase>package</phase>
@@ -384,6 +358,7 @@
384358
</build>
385359
</profile>
386360

361+
387362
<!-- M2 Profile: Runs a standard maven build that produces jar artifacts -->
388363
<profile>
389364
<id>m2</id>
@@ -566,8 +541,9 @@
566541
</build>
567542
</profile>
568543

569-
<!--In certain corner cases we only want to use the core modules/plugins e.g. when deploying to maven central.
570-
This profile is active by default and can be deactivated by passing the -DpluginsOnly-->
544+
<!--In certain corner cases we only want to use the core modules/plugins
545+
e.g. when deploying to maven central. This profile is active by default and
546+
can be deactivated by passing the -DpluginsOnly -->
571547
<profile>
572548
<id>non-plugin-modules</id>
573549
<activation>

releng/org.eclipse.emfcloud.modelserver.releng.p2/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<rsync.remote.dir>${remote.p2.root}/${repository.path}</rsync.remote.dir>
2929
<!-- pass "-n" to perform a trial run with no changes made -->
3030
<dryrun></dryrun>
31+
<p2.site.label>Eclipse EMF.Cloud Model Server Nightly Updatesite</p2.site.label>
3132
</properties>
3233

3334
<build>
@@ -73,7 +74,7 @@
7374
<configuration>
7475
<executionEnvironment>JavaSE-11</executionEnvironment>
7576
<!-- IMPORTANT: DO NOT split the arg line -->
76-
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile packaging-p2composite.ant p2.composite.add -Dsite.label="Eclipse EMF.Cloud Model Server Nightly Updatesite" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -DbuildQualifier=${buildQualifier} -Dsoftware.download.area=${rsync.local.dir}</appArgLine>
77+
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile packaging-p2composite.ant p2.composite.add -Dsite.label=${p2.site.label} -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -DbuildQualifier=${buildQualifier} -Dsoftware.download.area=${rsync.local.dir}</appArgLine>
7778
<repositories>
7879
<repository>
7980
<id>2020-09</id>

releng/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<profiles>
1919
<profile>
20-
<id>p2-release</id>
20+
<id>p2</id>
2121
<modules>
2222
<module>org.eclipse.emfcloud.modelserver.releng.p2</module>
2323
</modules>

0 commit comments

Comments
 (0)