Added a mirror step to build the uber-repo
diff --git a/cbi/org.eclipse.e4.releng.update/pom.xml b/cbi/org.eclipse.e4.releng.update/pom.xml
new file mode 100644
index 0000000..01e1373
--- /dev/null
+++ b/cbi/org.eclipse.e4.releng.update/pom.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+
+  <groupId>org.eclipse.e4.releng</groupId>
+  <artifactId>org.eclipse.e4.releng.update</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+<build>
+    <plugins>
+        <plugin>
+            <groupId>org.eclipse.tycho.extras</groupId>
+            <artifactId>tycho-p2-extras-plugin</artifactId>
+            <version>${tycho-version}</version>
+            <executions>
+                <execution>
+                    <phase>prepare-package</phase>
+                    <goals>
+                        <goal>mirror</goal>
+                    </goals>
+                </execution>
+            </executions>
+            <configuration>
+                <source>
+                    <!-- source repositories to mirror from -->
+                    <repository>
+                        <url>file://${buildDirectory}/org.eclipse.e4.tools/build/org.eclipse.e4.core.tools.update/target/repository</url>
+                        <layout>p2</layout>
+                        <!-- supported layouts are "p2-metadata", "p2-artifacts", and "p2" (for joint repositories; default) -->
+                    </repository>
+                </source>
+                <source>
+                    <!-- source repositories to mirror from -->
+                    <repository>
+                        <url>file://${buildDirectory}/org.eclipse.e4.search/build/org.eclipse.e4.search.update/target/repository</url>
+                        <layout>p2</layout>
+                        <!-- supported layouts are "p2-metadata", "p2-artifacts", and "p2" (for joint repositories; default) -->
+                    </repository>
+                </source>
+                <source>
+                    <!-- source repositories to mirror from -->
+                    <repository>
+                        <url>file://${buildDirectory}/org.eclipse.e4.languages/build/org.eclipse.e4.languages.update/target/repository</url>
+                        <layout>p2</layout>
+                        <!-- supported layouts are "p2-metadata", "p2-artifacts", and "p2" (for joint repositories; default) -->
+                    </repository>
+                </source>
+ 
+                <!-- starting from here all configuration parameters are optional -->
+                <!-- they are only shown here with default values for documentation purpose -->
+ 
+                <!-- List of IUs to mirror. If omitted, allIUs will be mirrored. -->
+                <!-- Omitted IU version element means latest version of the IU -->
+                <!--ius>
+                    <iu>
+                        <id>org.eclipse.rcp.feature.group</id>
+                    </iu>
+                </ius-->
+                <!-- The destination directory to mirror to. -->
+                <destination>${buildDirectory}/repository</destination>
+                <!-- Whether only strict dependencies should be followed. -->
+                <!-- "strict" means perfect version match -->
+                <followStrictOnly>false</followStrictOnly>
+                <!-- Whether or not to follow optional requirements. -->
+                <includeOptional>false</includeOptional>
+                <!-- Whether or not to follow non-greedy requirements. -->
+                <includeNonGreedy>false</includeNonGreedy>
+                <!-- Filter properties. E.g. filter only one platform -->
+                <!-- Whether to filter the resulting set of IUs to only -->
+                <!-- include the latest version of each IU -->
+                <latestVersionOnly>true</latestVersionOnly>
+                <!-- don't mirror artifacts, only metadata -->
+                <mirrorMetadataOnly>false</mirrorMetadataOnly>
+                <!-- whether to compress the content.xml/artifacts.xml -->
+                <compress>true</compress>
+                <!-- whether to append to the target repository content -->
+                <append>true</append>
+            </configuration>
+        </plugin>
+    </plugins>
+</build>
+
+</project>
+
diff --git a/org.eclipse.e4.builder/scripts/buildCBI.sh b/org.eclipse.e4.builder/scripts/buildCBI.sh
index e67672e..fc11038 100755
--- a/org.eclipse.e4.builder/scripts/buildCBI.sh
+++ b/org.eclipse.e4.builder/scripts/buildCBI.sh
@@ -1,5 +1,8 @@
 #!/bin/bash +x
 
+mavenVerbose=-X
+mavenSign=-Peclipse-sign
+
 #default values, overridden by command line
 writableBuildRoot=/shared/eclipse/e4
 relengProject=org.eclipse.e4.releng
@@ -133,3 +136,54 @@
 
 cd $buildDirectory
 
+localMavenRepo=$buildDirectory/localRepo
+
+git clone file:///gitroot/cbi/org.eclipse.cbi.maven.plugins.git
+git clone file:///gitroot/e4/org.eclipse.e4.releng.git
+git clone file:///gitroot/e4/org.eclipse.e4.tools.git
+git clone file:///gitroot/e4/org.eclipse.e4.search.git
+git clone file:///gitroot/e4/org.eclipse.e4.languages.git
+
+pushd org.eclipse.cbi.maven.plugins
+mvn -f eclipse-jarsigner-plugin/pom.xml \
+clean install \
+-Dmaven.repo.local=$localMavenRepo
+popd
+
+pushd org.eclipse.e4.releng/cbi
+mvn -f eclipse-parent/pom.xml \
+clean install \
+-Dmaven.repo.local=$localMavenRepo
+popd
+
+pushd org.eclipse.e4.tools
+mvn $mavenVerbose \
+clean verify \
+$mavenSign \
+-Dmaven.test.skip=true \
+-Dmaven.repo.local=$localMavenRepo
+popd
+
+pushd org.eclipse.e4.search
+mvn $mavenVerbose \
+clean verify \
+$mavenSign \
+-Dmaven.test.skip=true \
+-Dmaven.repo.local=$localMavenRepo
+popd
+
+pushd org.eclipse.e4.languages
+mvn $mavenVerbose \
+clean verify \
+$mavenSign \
+-Dmaven.test.skip=true \
+-Dmaven.repo.local=$localMavenRepo
+popd
+
+
+ #1136  cp /home/data/httpd/download.eclipse.org/eclipse/downloads/drops4/R-4.2-201206081400/eclipse-SDK-4.2-linux-gtk-x86_64.tar.gz .
+ #1137  ls
+ #1138  gunzip -dc eclipse-SDK-4.2-linux-gtk-x86_64.tar.gz | tar xf -
+ #1139  ls
+ #1140  eclipse/eclipse -noSplash -application org.eclipse.ant.core.antRunner -DbuildDirectory=$buildDirectory -buildfile /shared/eclipse/e4/cbi/mirror-build.xml 
+
diff --git a/org.eclipse.e4.builder/scripts/mirror-build.xml b/org.eclipse.e4.builder/scripts/mirror-build.xml
new file mode 100644
index 0000000..ec2f595
--- /dev/null
+++ b/org.eclipse.e4.builder/scripts/mirror-build.xml
@@ -0,0 +1,24 @@
+<project name="Create Build Repo" default="mirrorBuild">
+	<property name="localRepoLocation" value="${buildDirectory}/repository"/>
+	<property name="toolsRepo" value="file://${buildDirectory}/org.eclipse.e4.tools/build/org.eclipse.e4.core.tools.update/target/repository"/>
+	<property name="searchRepo" value="file://${buildDirectory}/org.eclipse.e4.search/build/org.eclipse.e4.search.update/target/repository"/>
+	<property name="langRepo" value="file://${buildDirectory}/org.eclipse.e4.languages/build/org.eclipse.e4.languages.update/target/repository"/>
+
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do after setup but before starting the build proper -->
+	<!-- ===================================================================== -->
+	<target name="mirrorBuild" >
+		<echo message="Mirror from ${toolsRepo} to ${localRepoLocation}" />
+		<echo message="Mirror from ${searchRepo} to ${localRepoLocation}" />
+		<echo message="Mirror from ${langRepo} to ${localRepoLocation}" />
+		<p2.mirror destination="file:${localRepoLocation}" ignoreerrors="true">
+			<source location="${toolsRepo}" />
+			<source location="${searchRepo}" />
+			<source location="${langRepo}" />
+			<slicingOptions includeOptional="false" includeNonGreedy="false" latestVersionOnly="true"/>
+		</p2.mirror>
+	</target>
+
+</project>
+