Bug 518973

Summary: Investigate skipping some `assemble-repository` steps for products-only buulds
Product: [Eclipse Project] Platform Reporter: Mickael Istria <mistria>
Component: RelengAssignee: Platform-Releng-Inbox <platform-releng-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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?