promote-pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.base</groupId>
  8. <artifactId>org.yakindu.base.releng</artifactId>
  9. <version>2.1.1-SNAPSHOT</version>
  10. <relativePath>../org.yakindu.base.releng/pom.xml</relativePath>
  11. </parent>
  12. <artifactId>de.itemis.xtext.utils.promote</artifactId>
  13. <packaging>pom</packaging>
  14. <properties>
  15. <tycho-extras-version>0.16.0</tycho-extras-version>
  16. <!-- scp settings for publishing udpdate site -->
  17. <promotionTarget>indigo/integration</promotionTarget>
  18. <promotionSource>http://builds.itemis.de/urlToCIJob/lastSuccessfulBuild</promotionSource>
  19. <updateSiteUrl>http://updates.yakindu.com/${promotionTarget}</updateSiteUrl>
  20. <local.update.site>${project.build.directory}/local-update-site</local.update.site>
  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 be extended. -->
  58. <!-- Deactivate if no remote repository should be copied to append artifacts -->
  59. <id>CopySource</id>
  60. <activation>
  61. <property>
  62. <name>appendToExistingRepository</name>
  63. <value>!false</value>
  64. </property>
  65. </activation>
  66. <build>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.eclipse.tycho.extras</groupId>
  70. <artifactId>tycho-p2-extras-plugin</artifactId>
  71. <version>${tycho-extras-version}</version>
  72. <inherited>false</inherited>
  73. <executions>
  74. <execution>
  75. <id>copyRemoteSite</id>
  76. <phase>prepare-package</phase>
  77. <goals>
  78. <goal>mirror</goal>
  79. </goals>
  80. <configuration>
  81. <source>
  82. <!-- source repositori(es) to mirror from -->
  83. <repository>
  84. <url>${updateSiteUrl}</url>
  85. <layout>p2</layout>
  86. <!-- sypported layouts are "p2-metadata", "p2-artifacts", and
  87. "p2" (for joint repositories) -->
  88. </repository>
  89. </source>
  90. <destination>${local.update.site}</destination>
  91. <compress>true</compress>
  92. <append>false</append>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. </profile>
  100. </profiles>
  101. </project>