Bug 518973 - Investigate skipping some `assemble-repository` steps for products-only buulds
Summary: Investigate skipping some `assemble-repository` steps for products-only buulds
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Releng-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-29 11:32 EDT by Mickael Istria CLA
Modified: 2017-06-30 03:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2017-06-29 11:32:37 EDT
When building a .product with Tycho, the `assemble-repository` mojo is automatically invoked to build a p2 repo. In many cases, this step is useless as the resulting p2 repo is not used, and is quite time-consuming.
We should investigate whether we have some occurrence of such useless executions in Platform and skip them if they're not used.

Here is what to add to a pom.xml to skip the assemble-repsitory step on an eclipse-repostory which is about building products:

        <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>tycho-p2-repository-plugin</artifactId>
          <executions>
            <execution>
              <id>default-assemble-repository</id>
              <phase></phase>
              <configuration>
                <skip>true</skip>
              </configuration>
            </execution>
            <execution>
              <id>default-archive-repository</id>
              <phase></phase>
              <configuration>
                <skip>true</skip>
              </configuration>
            </execution>
          </executions>
        </plugin>
Comment 1 Mickael Istria CLA 2017-06-30 03:44:03 EDT
FYI, on EPP builds, skipping those steps saves 2h of build. I don't think we can expect as much for the Platform, but if we can save at least 1 or 2 minutes, why not?