123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?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>de.itemis.utils</groupId>
- <artifactId>de.itemis.utils.releng</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <relativePath>../de.itemis.xtext.utils.releng/pom.xml</relativePath>
- </parent>
- <artifactId>de.itemis.xtext.utils.promote</artifactId>
- <groupId>de.itemis.utils</groupId>
- <packaging>pom</packaging>
- <properties>
- <!-- scp settings for publishing udpdate site -->
- <yakindu.keyFile>${env.HUDSON_HOME}/jobs/${env.JOB_NAME}/yakindu.openSSH</yakindu.keyFile>
- <yakindu.passphrase>Yakindu-Update Site Passphrase 2009</yakindu.passphrase>
- <update.site.scp>yus@ftp.itemis.de:/data/yakindu/${env.promotionTarget}</update.site.scp>
- <local.update.site>${project.build.directory}/local-update-site</local.update.site>
- </properties>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <id>download Repository</id>
- <phase>prepare-package</phase>
- <configuration>
- <target name="fetch_old_repo">
- <delete dir="${local.update.site}" />
- <mkdir dir="${local.update.site}" />
- <scp todir="${local.update.site}" keyfile="${yakindu.keyFile}"
- failonerror="${scp.fail_on_error}" passphrase="${yakindu.passphrase}"
- trust="true" file="${update.site.scp}" sftp="true" />
- </target>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- <execution>
- <id>upload Repository</id>
- <phase>install</phase>
- <configuration>
- <target name="push_merged_repo">
- <scp keyfile="${yakindu.keyFile}" failonerror="${scp.fail_on_error}"
- passphrase="${yakindu.passphrase}" trust="true" toDir="${update.site.scp}"
- sftp="true">
- <fileset dir="${local.update.site}" />
- </scp>
- </target>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-jsch</artifactId>
- <version>1.7.0</version>
- </dependency>
- <dependency>
- <groupId>jsch</groupId>
- <artifactId>jsch</artifactId>
- <version>0.1.25</version>
- </dependency>
-
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-p2-extras-plugin</artifactId>
- <version>${tycho-version}</version>
- <inherited>false</inherited>
- <executions>
- <execution>
- <id>appendYakinduBase</id>
- <phase>package</phase>
- <goals>
- <goal>mirror</goal>
- </goals>
- <configuration>
- <source>
- <!-- source repositori(es) to mirror from -->
- <repository>
- <url>${promotionSource}artifact/update-site/</url>
- <layout>p2</layout>
- <!-- sypported layouts are "p2-metadata", "p2-artifacts", and "p2"
- (for joint repositories) -->
- </repository>
- </source>
- <destination>${local.update.site}</destination>
- <compress>true</compress>
- <append>true</append>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|