pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. <groupId>org.yakindu.base</groupId>
  7. <artifactId>org.yakindu.base.releng</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <!-- this is the parent POM from which all modules inherit common settings -->
  11. <properties>
  12. <tycho-version>0.13.0</tycho-version>
  13. <antrun-version>1.6</antrun-version>
  14. </properties>
  15. <repositories>
  16. <repository>
  17. <id>indigo</id>
  18. <layout>p2</layout>
  19. <url>http://download.eclipse.org/releases/indigo</url>
  20. </repository>
  21. <repository>
  22. <id>eclipse37</id>
  23. <layout>p2</layout>
  24. <url>http://download.eclipse.org/eclipse/updates/3.7</url>
  25. </repository>
  26. </repositories>
  27. <build>
  28. <plugins>
  29. <plugin>
  30. <!-- enable tycho build extension -->
  31. <groupId>org.eclipse.tycho</groupId>
  32. <artifactId>tycho-maven-plugin</artifactId>
  33. <version>${tycho-version}</version>
  34. <extensions>true</extensions>
  35. </plugin>
  36. <plugin>
  37. <groupId>org.apache.maven.plugins</groupId>
  38. <artifactId>maven-antrun-plugin</artifactId>
  39. <version>${antrun-version}</version>
  40. <executions>
  41. <execution>
  42. <id>replace-build-token</id>
  43. <phase>generate-sources</phase>
  44. <configuration>
  45. <target>
  46. <taskdef resource="net/sf/antcontrib/antcontrib.properties"
  47. classpathref="maven.plugin.classpath" />
  48. <if>
  49. <available file="about.mappings" />
  50. <then>
  51. <echo
  52. message="Replacing @build@ token within about.mappings with build id." />
  53. <replace file="about.mappings">
  54. <replacefilter token="@build@" value="${unqualifiedVersion}.${buildQualifier}" />
  55. </replace>
  56. </then>
  57. </if>
  58. <if>
  59. <available file="javadocOptions.txt" />
  60. <then>
  61. <echo
  62. message="Replacing @build@ token within javadocOptions.txt with build id." />
  63. <replace file="javadocOptions.txt">
  64. <replacefilter token="@build@" value="${unqualifiedVersion}.${buildQualifier}" />
  65. </replace>
  66. </then>
  67. </if>
  68. </target>
  69. </configuration>
  70. <goals>
  71. <goal>run</goal>
  72. </goals>
  73. </execution>
  74. <execution>
  75. <id>replace-back-build-token</id>
  76. <phase>install</phase>
  77. <configuration>
  78. <target>
  79. <taskdef resource="net/sf/antcontrib/antcontrib.properties"
  80. classpathref="maven.plugin.classpath" />
  81. <if>
  82. <available file="about.mappings" />
  83. <then>
  84. <echo
  85. message="Replacing back build id within about.mappings with @build@ token." />
  86. <replace file="about.mappings">
  87. <replacefilter token="${unqualifiedVersion}.${buildQualifier}" value="@build@" />
  88. </replace>
  89. </then>
  90. </if>
  91. <if>
  92. <available file="javadocOptions.txt" />
  93. <then>
  94. <echo
  95. message="Replacing back build id within javadocOptions.txt with @build@ token." />
  96. <replace file="javadocOptions.txt">
  97. <replacefilter token="${unqualifiedVersion}.${buildQualifier}" value="@build@" />
  98. </replace>
  99. </then>
  100. </if>
  101. </target>
  102. </configuration>
  103. <goals>
  104. <goal>run</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. <dependencies>
  109. <dependency>
  110. <groupId>ant-contrib</groupId>
  111. <artifactId>ant-contrib</artifactId>
  112. <version>20020829</version>
  113. </dependency>
  114. </dependencies>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. <profiles>
  119. <profile>
  120. <id>Indigo.target</id>
  121. <activation>
  122. <activeByDefault>true</activeByDefault>
  123. </activation>
  124. <build>
  125. <plugins>
  126. <plugin>
  127. <groupId>org.eclipse.tycho</groupId>
  128. <artifactId>target-platform-configuration</artifactId>
  129. <version>${tycho-version}</version>
  130. <configuration>
  131. <!-- add target file content to target platform -->
  132. <target>
  133. <artifact>
  134. <groupId>org.yakindu.base</groupId>
  135. <artifactId>org.yakindu.base.target</artifactId>
  136. <version>1.0.0-SNAPSHOT</version>
  137. <classifier>INDIGO_SR1</classifier>
  138. </artifact>
  139. </target>
  140. <environments>
  141. <environment>
  142. <os>linux</os>
  143. <ws>gtk</ws>
  144. <arch>x86</arch>
  145. </environment>
  146. <environment>
  147. <os>linux</os>
  148. <ws>gtk</ws>
  149. <arch>x86_64</arch>
  150. </environment>
  151. <environment>
  152. <os>win32</os>
  153. <ws>win32</ws>
  154. <arch>x86</arch>
  155. </environment>
  156. <environment>
  157. <os>win32</os>
  158. <ws>win32</ws>
  159. <arch>x86_64</arch>
  160. </environment>
  161. <environment>
  162. <os>macosx</os>
  163. <ws>cocoa</ws>
  164. <arch>x86_64</arch>
  165. </environment>
  166. </environments>
  167. </configuration>
  168. </plugin>
  169. </plugins>
  170. </build>
  171. </profile>
  172. </profiles>
  173. <modules>
  174. <module>../org.yakindu.base.types</module>
  175. <module>../org.yakindu.base.types.edit</module>
  176. <module>../org.yakindu.base.types.scope</module>
  177. <module>../de.itemis.gmf.runtime.commons</module>
  178. <module>../de.itemis.gmf.runtime.commons-feature</module>
  179. <module>../de.itemis.xtext.utils.gmf</module>
  180. <module>../de.itemis.xtext.utils.gmf-feature</module>
  181. <module>../de.itemis.xtext.utils.gmf.source-feature</module>
  182. <module>../de.itemis.xtext.utils.jface</module>
  183. <module>../de.itemis.xtext.utils.jface-feature</module>
  184. <module>../de.itemis.xtext.utils.jface.source-feature</module>
  185. <module>../org.yakindu.base-feature</module>
  186. <module>../org.yakindu.base.repository</module>
  187. <module>../org.yakindu.base.target</module>
  188. </modules>
  189. </project>