promote-pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.yakindu.sct</groupId>
  8. <artifactId>org.yakindu.sct.releng</artifactId>
  9. <version>1.0.0-SNAPSHOT</version>
  10. <relativePath>../org.yakindu.sct.releng/pom.xml</relativePath>
  11. </parent>
  12. <artifactId>org.yakindu.sct.releng.promote</artifactId>
  13. <packaging>pom</packaging>
  14. <properties>
  15. <!-- scp settings for publishing udpdate site -->
  16. <promotionTarget>indigo/integration</promotionTarget>
  17. <promotionSource>http://builds.itemis.de/urlToCIJob/lastSuccessfulBuild</promotionSource>
  18. <updateSiteUrl>http://updates.yakindu.com/${promotionTarget}</updateSiteUrl>
  19. <local.update.site>${project.build.directory}/local-update-site</local.update.site>
  20. <tycho.extras.version>0.14.0</tycho.extras.version>
  21. </properties>
  22. <build>
  23. <plugins>
  24. <plugin>
  25. <groupId>org.eclipse.tycho.extras</groupId>
  26. <artifactId>tycho-p2-extras-plugin</artifactId>
  27. <version>${tycho.extras.version}</version>
  28. <inherited>false</inherited>
  29. <executions>
  30. <execution>
  31. <id>appendYakinduBase</id>
  32. <phase>package</phase>
  33. <goals>
  34. <goal>mirror</goal>
  35. </goals>
  36. <configuration>
  37. <source>
  38. <!-- source repositori(es) to mirror from -->
  39. <repository>
  40. <url>${promotionSource}artifact/update-site/</url>
  41. <layout>p2</layout>
  42. <!-- sypported layouts are "p2-metadata", "p2-artifacts", and "p2"
  43. (for joint repositories) -->
  44. </repository>
  45. </source>
  46. <destination>${local.update.site}</destination>
  47. <compress>true</compress>
  48. <append>true</append>
  49. </configuration>
  50. </execution>
  51. </executions>
  52. </plugin>
  53. </plugins>
  54. </build>
  55. <profiles>
  56. <profile>
  57. <!-- This profile is activated by default, if the remote repository should
  58. be extended. -->
  59. <!-- Deactivate if no remote repository should be copied to append artifacts -->
  60. <id>CopySource</id>
  61. <activation>
  62. <property>
  63. <name>appendToExistingRepository</name>
  64. <value>!false</value>
  65. </property>
  66. </activation>
  67. <build>
  68. <plugins>
  69. <plugin>
  70. <groupId>org.eclipse.tycho.extras</groupId>
  71. <artifactId>tycho-p2-extras-plugin</artifactId>
  72. <version>${tycho.extras.version}</version>
  73. <inherited>false</inherited>
  74. <executions>
  75. <execution>
  76. <id>copyRemoteSite</id>
  77. <phase>prepare-package</phase>
  78. <goals>
  79. <goal>mirror</goal>
  80. </goals>
  81. <configuration>
  82. <source>
  83. <!-- source repositori(es) to mirror from -->
  84. <repository>
  85. <url>${updateSiteUrl}</url>
  86. <layout>p2</layout>
  87. <!-- sypported layouts are "p2-metadata", "p2-artifacts", and
  88. "p2" (for joint repositories) -->
  89. </repository>
  90. </source>
  91. <destination>${local.update.site}</destination>
  92. <compress>true</compress>
  93. <append>false</append>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. </profile>
  101. </profiles>
  102. </project>