Provide packed jars in update site
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 4 Feb 2015 23:19:49 +0000 (18:19 -0500)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 17 Feb 2015 04:45:38 +0000 (23:45 -0500)
This is recommended to use in eclipse p2 repositories to reduce bandwidth.

If we need to provide a zip of the update site in the future, we should
consider the workaround done by CDT to reduce the zip size, see
https://git.eclipse.org/r/#/c/39624/

References:
https://wiki.eclipse.org/Tycho/Pack200
https://wiki.eclipse.org/SimRel/Simultaneous_Release_Requirements#Provide_optimized_p2_repository_.28partially_tested.29
http://build.eclipse.org/simrel/mars/reporeports/reports/pack200data.txt

Change-Id: I80de8ccaf96c6741db890e079c590ea101e88a9d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/41114
Reviewed-by: Hudson CI
pom.xml

diff --git a/pom.xml b/pom.xml
index 63e518104bd425db39c86dc7a85906c42815a218..8b89b79c41d14a5d45a7b4d511447dc8b58777a6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <id>sign-update-site</id>
     <build>
       <plugins>
+        <plugin>
+          <groupId>org.eclipse.tycho.extras</groupId>
+          <artifactId>tycho-pack200a-plugin</artifactId>
+          <version>${tycho-extras-version}</version>
+          <executions>
+            <execution>
+              <id>pack200-normalize</id>
+              <goals>
+                <goal>normalize</goal>
+              </goals>
+              <phase>package</phase>
+            </execution>
+          </executions>
+        </plugin>
         <plugin>
           <groupId>org.eclipse.cbi.maven.plugins</groupId>
           <artifactId>eclipse-jarsigner-plugin</artifactId>
@@ -84,7 +98,7 @@
           <executions>
             <execution>
               <id>sign</id>
-              <phase>install</phase>
+              <phase>package</phase>
               <goals>
                 <goal>sign</goal>
               </goals>
                 <artifactId>target-platform-configuration</artifactId>
                 <version>${tycho-version}</version>
                 <configuration>
+                    <includePackedArtifacts>true</includePackedArtifacts>
                     <environments>
                         <environment>
                             <os>win32</os>
             </execution>
           </executions>
       </plugin>
+      <plugin>
+        <groupId>org.eclipse.tycho.extras</groupId>
+        <artifactId>tycho-pack200b-plugin</artifactId>
+        <version>${tycho-extras-version}</version>
+        <executions>
+          <execution>
+            <id>pack200-pack</id>
+            <goals>
+              <goal>pack</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.eclipse.tycho</groupId>
+        <artifactId>tycho-p2-plugin</artifactId>
+        <version>${tycho-version}</version>
+        <executions>
+          <execution>
+            <id>p2-metadata</id>
+            <goals>
+              <goal>p2-metadata</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+        <configuration>
+          <defaultP2Metadata>false</defaultP2Metadata>
+        </configuration>
+      </plugin>
     </plugins>
     <pluginManagement>
       <plugins>
This page took 0.029224 seconds and 5 git commands to generate.