pom.xml 5.6 KB

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