Jelajahi Sumber

Custom build jobs to mirror target repository

benjamin.schwertfeger@gmail.com 13 tahun lalu
induk
melakukan
5e64fb73e0

+ 11 - 0
releng/org.yakindu.base.target.parent/.project

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.base.target.parent</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>

+ 109 - 0
releng/org.yakindu.base.target.parent/pom.xml

@@ -0,0 +1,109 @@
+<?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.yakindu.base</groupId>
+	<artifactId>org.yakindu.base.target.parent</artifactId>
+	<version>1.0.0-SNAPSHOT</version>
+	<packaging>pom</packaging>
+
+	<!-- this is the parent POM from which all modules inherit common settings -->
+	<properties>
+		<tycho-version>0.14.1</tycho-version>
+	</properties>
+	<repositories>
+		<repository>
+	      <id>indigo</id>
+	      <layout>p2</layout>
+	      <url>http://download.eclipse.org/releases/indigo</url>
+	    </repository>
+		<repository>
+	      <id>eclipse37</id>
+	      <layout>p2</layout>
+	      <url>http://download.eclipse.org/eclipse/updates/3.7</url>
+	    </repository>
+	</repositories>
+	<build>
+		<plugins>
+			<plugin>
+				<!-- enable tycho build extension -->
+				<groupId>org.eclipse.tycho</groupId>
+				<artifactId>tycho-maven-plugin</artifactId>
+				<version>${tycho-version}</version>
+				<extensions>true</extensions>
+			</plugin>
+		</plugins>
+		<pluginManagement>
+			<plugins>
+				<plugin>
+					<groupId>org.eclipse.tycho</groupId>
+					<artifactId>tycho-p2-repository-plugin</artifactId>
+					<configuration>
+						<includeAllDependencies>true</includeAllDependencies>
+					</configuration>
+				</plugin>
+			</plugins>
+		</pluginManagement>
+	</build>
+	<modules>
+		<module>../org.yakindu.base.target</module>
+		<module>../org.yakindu.base.target.repository</module>
+	</modules>
+	<profiles>
+		<profile>
+			<id>Indigo.target</id>
+			<activation>
+				<activeByDefault>true</activeByDefault>
+			</activation>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.eclipse.tycho</groupId>
+						<artifactId>target-platform-configuration</artifactId>
+						<version>${tycho-version}</version>
+						<configuration>
+							<!-- add target file content to target platform -->
+							<target>
+								<artifact>
+									<groupId>org.yakindu.base</groupId>
+									<artifactId>org.yakindu.base.target</artifactId>
+									<version>1.0.0-SNAPSHOT</version>
+									<classifier>INDIGO_SR1</classifier>
+								</artifact>
+							</target>
+							<environments>
+								<environment>
+									<os>linux</os>
+									<ws>gtk</ws>
+									<arch>x86</arch>
+								</environment>
+								<environment>
+									<os>linux</os>
+									<ws>gtk</ws>
+									<arch>x86_64</arch>
+								</environment>
+								<environment>
+									<os>win32</os>
+									<ws>win32</ws>
+									<arch>x86</arch>
+								</environment>
+								<environment>
+									<os>win32</os>
+									<ws>win32</ws>
+									<arch>x86_64</arch>
+								</environment>
+								<environment>
+									<os>macosx</os>
+									<ws>cocoa</ws>
+									<arch>x86_64</arch>
+								</environment>
+							</environments>
+						</configuration>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
+
+</project>

+ 32 - 0
releng/org.yakindu.base.target.parent/settings.xml

@@ -0,0 +1,32 @@
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
+                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
+  <localRepository/>
+  <interactiveMode/>
+  <usePluginRegistry/>
+  <offline/>
+  <pluginGroups/>
+  <servers/>
+  <mirrors>
+    <mirror>
+      <id>Reserve</id>
+      <name>itemis</name>
+      <url>http://reserve.itemis.de/eclipse/releases/indigo</url>
+      <mirrorOf>indigo</mirrorOf>
+      <layout>p2</layout>
+      <mirrorOfLayouts>p2</mirrorOfLayouts>
+    </mirror>
+    <mirror>
+      <id>Reserve3</id>
+      <name>eclipse37</name>
+      <url>http://reserve.itemis.de/eclipse/eclipse/updates/3.7</url>
+      <mirrorOf>eclipse37</mirrorOf>
+      <layout>p2</layout>
+      <mirrorOfLayouts>p2</mirrorOfLayouts>
+    </mirror>
+  </mirrors>
+  <proxies/>
+  <profiles/>
+  <activeProfiles/>
+</settings>

+ 11 - 0
releng/org.yakindu.base.target.repository/.project

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.base.target.repository</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>

+ 19 - 0
releng/org.yakindu.base.target.repository/category.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+   <feature url="features/org.eclipse.emf.sdk_2.7.1.v20110913-1526.jar" id="org.eclipse.emf.sdk" version="2.7.1.v20110913-1526">
+      <category name="3rdParty"/>
+   </feature>
+   <feature url="features/org.eclipse.gmf.runtime.notation.sdk_1.5.0.v20110426-2159-47D08xGD6ExNBM7CIJa3CIKK9t84.jar" id="org.eclipse.gmf.runtime.notation.sdk" version="1.5.0.v20110426-2159-47D08xGD6ExNBM7CIJa3CIKK9t84">
+      <category name="3rdParty"/>
+   </feature>
+   <feature url="features/org.eclipse.gmf.runtime.sdk_1.5.0.v20110607-1200-67N09E9QnChoWswz-3wf_rz0kQ8Y.jar" id="org.eclipse.gmf.runtime.sdk" version="1.5.0.v20110607-1200-67N09E9QnChoWswz-3wf_rz0kQ8Y">
+      <category name="3rdParty"/>
+   </feature>
+   <feature url="features/org.eclipse.xtext.sdk_2.0.1.v201108020636.jar" id="org.eclipse.xtext.sdk" version="2.0.1.v201108020636">
+      <category name="3rdParty"/>
+   </feature>
+   <feature url="features/org.eclipse.platform_3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q.jar" id="org.eclipse.platform" version="3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q">
+      <category name="3rdParty"/>
+   </feature>
+   <category-def name="3rdParty" label="3rdParty Yakindu Base target"/>
+</site>

+ 74 - 0
releng/org.yakindu.base.target.repository/pom.xml

@@ -0,0 +1,74 @@
+<?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>
+	<parent>
+		<groupId>org.yakindu.base</groupId>
+		<artifactId>org.yakindu.base.target.parent</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+		<relativePath>../org.yakindu.base.target.parent/pom.xml</relativePath>
+	</parent>
+	<artifactId>org.yakindu.base.target.repository</artifactId>
+	<packaging>eclipse-repository</packaging>
+
+	<properties>
+		<signer-version>1.0.5</signer-version>
+		<signer-input-directory>/home/data/httpd/download-staging.priv/tools/gef/gef4</signer-input-directory>
+	</properties>
+
+	<profiles>
+		<profile>
+			<id>hudson.eclipse.org</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.eclipse.dash.maven</groupId>
+						<artifactId>eclipse-signing-maven-plugin</artifactId>
+						<version>${signer-version}</version>
+						<executions>
+							<execution>
+								<id>pack</id>
+								<configuration>
+									<inputFile>${project.build.directory}/org.eclipse.gef4.repository.zip</inputFile>
+								</configuration>
+								<phase>package</phase>
+								<goals>
+									<goal>pack</goal>
+								</goals>
+							</execution>
+							<execution>
+								<id>sign</id>
+								<configuration>
+									<inputFile>${project.build.directory}/org.eclipse.gef4.repository.zip</inputFile>
+									<signerInputDirectory>${signer-input-directory}</signerInputDirectory>
+								</configuration>
+								<phase>package</phase>
+								<goals>
+									<goal>sign</goal>
+								</goals>
+							</execution>
+							<execution>
+								<id>repack</id>
+								<configuration>
+									<inputFile>${project.build.directory}/signed/site_assembly.zip</inputFile>
+								</configuration>
+								<phase>package</phase>
+								<goals>
+									<goal>pack</goal>
+								</goals>
+							</execution>
+							<execution>
+								<id>fixCheckSums</id>
+								<phase>package</phase>
+								<goals>
+									<goal>fixCheckSums</goal>
+								</goals>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
+</project>

+ 2 - 2
releng/org.yakindu.base.target/pom.xml

@@ -5,9 +5,9 @@
 	<modelVersion>4.0.0</modelVersion>
 	<parent>
 		<groupId>org.yakindu.base</groupId>
-		<artifactId>org.yakindu.base.releng</artifactId>
+		<artifactId>org.yakindu.base.target.parent</artifactId>
 		<version>1.0.0-SNAPSHOT</version>
-		<relativePath>../org.yakindu.base.releng/pom.xml</relativePath>
+		<relativePath>../org.yakindu.base.target.parent/pom.xml</relativePath>
 	</parent>
 	<artifactId>org.yakindu.base.target</artifactId>
 	<packaging>pom</packaging>