pom.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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>2.1.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.16.0</tycho-version>
  13. <antrun-version>1.6</antrun-version>
  14. <p2.target.repository>file:../org.yakindu.base.target/target/repository</p2.target.repository>
  15. <tycho-extras-version>0.16.0</tycho-extras-version>
  16. </properties>
  17. <repositories>
  18. <repository>
  19. <id>target</id>
  20. <layout>p2</layout>
  21. <url>${p2.target.repository}</url>
  22. </repository>
  23. </repositories>
  24. <build>
  25. <plugins>
  26. <plugin>
  27. <!-- enable tycho build extension -->
  28. <groupId>org.eclipse.tycho</groupId>
  29. <artifactId>tycho-maven-plugin</artifactId>
  30. <version>${tycho-version}</version>
  31. <extensions>true</extensions>
  32. </plugin>
  33. <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-antrun-plugin</artifactId>
  36. <version>${antrun-version}</version>
  37. <executions>
  38. <execution>
  39. <id>replace-build-token</id>
  40. <phase>generate-sources</phase>
  41. <configuration>
  42. <target>
  43. <taskdef resource="net/sf/antcontrib/antcontrib.properties"
  44. classpathref="maven.plugin.classpath" />
  45. <if>
  46. <available file="about.mappings" />
  47. <then>
  48. <echo
  49. message="Replacing @build@ token within about.mappings with build id." />
  50. <replace file="about.mappings">
  51. <replacefilter token="@build@"
  52. value="${unqualifiedVersion}.${buildQualifier}" />
  53. </replace>
  54. </then>
  55. </if>
  56. <if>
  57. <available file="javadocOptions.txt" />
  58. <then>
  59. <echo
  60. message="Replacing @build@ token within javadocOptions.txt with build id." />
  61. <replace file="javadocOptions.txt">
  62. <replacefilter token="@build@"
  63. value="${unqualifiedVersion}.${buildQualifier}" />
  64. </replace>
  65. </then>
  66. </if>
  67. </target>
  68. </configuration>
  69. <goals>
  70. <goal>run</goal>
  71. </goals>
  72. </execution>
  73. <execution>
  74. <id>replace-back-build-token</id>
  75. <phase>install</phase>
  76. <configuration>
  77. <target>
  78. <taskdef resource="net/sf/antcontrib/antcontrib.properties"
  79. classpathref="maven.plugin.classpath" />
  80. <if>
  81. <available file="about.mappings" />
  82. <then>
  83. <echo
  84. message="Replacing back build id within about.mappings with @build@ token." />
  85. <replace file="about.mappings">
  86. <replacefilter token="${unqualifiedVersion}.${buildQualifier}"
  87. 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}"
  98. value="@build@" />
  99. </replace>
  100. </then>
  101. </if>
  102. </target>
  103. </configuration>
  104. <goals>
  105. <goal>run</goal>
  106. </goals>
  107. </execution>
  108. </executions>
  109. <dependencies>
  110. <dependency>
  111. <groupId>ant-contrib</groupId>
  112. <artifactId>ant-contrib</artifactId>
  113. <version>20020829</version>
  114. </dependency>
  115. </dependencies>
  116. </plugin>
  117. </plugins>
  118. <pluginManagement>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-clean-plugin</artifactId>
  123. <version>2.4.1</version>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.eclipse.xtend</groupId>
  127. <artifactId>xtend-maven-plugin</artifactId>
  128. <version>2.3.0</version>
  129. <configuration>
  130. <!-- need to prefix by basedir to generate to currently built module -->
  131. <outputDirectory>${basedir}/xtend-gen</outputDirectory>
  132. </configuration>
  133. </plugin>
  134. <!-- Avoid the generation of maven archive information in the META-INF
  135. folder -->
  136. <plugin>
  137. <groupId>${tycho-groupid}</groupId>
  138. <artifactId>tycho-packaging-plugin</artifactId>
  139. <version>${tycho-version}</version>
  140. <configuration>
  141. <archive>
  142. <addMavenDescriptor>false</addMavenDescriptor>
  143. </archive>
  144. </configuration>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.eclipse.tycho.extras</groupId>
  148. <artifactId>tycho-source-feature-plugin</artifactId>
  149. <version>${tycho-extras-version}</version>
  150. <executions>
  151. <execution>
  152. <id>source-feature</id>
  153. <phase>package</phase>
  154. <goals>
  155. <goal>source-feature</goal>
  156. </goals>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.eclipse.tycho</groupId>
  162. <artifactId>tycho-p2-plugin</artifactId>
  163. <version>${tycho-version}</version>
  164. <executions>
  165. <execution>
  166. <id>attached-p2-metadata</id>
  167. <phase>package</phase>
  168. <goals>
  169. <goal>p2-metadata</goal>
  170. </goals>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. </plugins>
  175. </pluginManagement>
  176. </build>
  177. <pluginRepositories>
  178. <pluginRepository>
  179. <id>eclipse-xtend</id>
  180. <url>http://build.eclipse.org/common/xtend/maven</url>
  181. <releases>
  182. <enabled>true</enabled>
  183. </releases>
  184. <snapshots>
  185. <enabled>true</enabled>
  186. </snapshots>
  187. </pluginRepository>
  188. </pluginRepositories>
  189. <profiles>
  190. <profile>
  191. <id>Indigo.target</id>
  192. <activation>
  193. <activeByDefault>true</activeByDefault>
  194. </activation>
  195. <build>
  196. <plugins>
  197. <plugin>
  198. <groupId>org.eclipse.tycho</groupId>
  199. <artifactId>target-platform-configuration</artifactId>
  200. <version>${tycho-version}</version>
  201. <configuration>
  202. <!-- add target file content to target platform -->
  203. <environments>
  204. <environment>
  205. <os>linux</os>
  206. <ws>gtk</ws>
  207. <arch>x86</arch>
  208. </environment>
  209. <environment>
  210. <os>linux</os>
  211. <ws>gtk</ws>
  212. <arch>x86_64</arch>
  213. </environment>
  214. <environment>
  215. <os>win32</os>
  216. <ws>win32</ws>
  217. <arch>x86</arch>
  218. </environment>
  219. <environment>
  220. <os>win32</os>
  221. <ws>win32</ws>
  222. <arch>x86_64</arch>
  223. </environment>
  224. <environment>
  225. <os>macosx</os>
  226. <ws>cocoa</ws>
  227. <arch>x86_64</arch>
  228. </environment>
  229. </environments>
  230. </configuration>
  231. </plugin>
  232. </plugins>
  233. </build>
  234. </profile>
  235. </profiles>
  236. <modules>
  237. <module>../org.yakindu.base.types</module>
  238. <module>../org.yakindu.base.types.edit</module>
  239. <module>../org.yakindu.base.types.scope</module>
  240. <module>../de.itemis.gmf.runtime.commons</module>
  241. <module>../de.itemis.gmf.runtime.commons-feature</module>
  242. <module>../de.itemis.xtext.utils.gmf</module>
  243. <module>../de.itemis.xtext.utils.gmf-feature</module>
  244. <!-- <module>../de.itemis.xtext.utils.gmf.source-feature</module> -->
  245. <module>../de.itemis.xtext.utils.jface</module>
  246. <module>../de.itemis.xtext.utils.jface-feature</module>
  247. <!-- <module>../de.itemis.xtext.utils.jface.source-feature</module> -->
  248. <module>../org.yakindu.base-feature</module>
  249. <module>../org.yakindu.base.repository</module>
  250. </modules>
  251. </project>