pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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>2.1.0-SNAPSHOT</version>
  10. <relativePath>../org.yakindu.sct.releng/pom.xml</relativePath>
  11. </parent>
  12. <artifactId>org.yakindu.sct.repository</artifactId>
  13. <packaging>eclipse-repository</packaging>
  14. <properties>
  15. <eclipse.mirror.url>http://mirror.netcologne.de/eclipse</eclipse.mirror.url>
  16. <distro.work.dir>${project.build.directory}/distro/work</distro.work.dir>
  17. <distro.dir>${project.build.directory}/distro</distro.dir>
  18. <profile>epp.package.java</profile>
  19. <features>org.eclipse.xtext.sdk.feature.group,org.eclipse.xtend.sdk.feature.group,org.yakindu.sct.feature.group</features>
  20. <!-- TODO ,org.eclipse.gmf.runtime.emf.clipboard.core.patch.feature.group -->
  21. <update.sites>${project.baseUri}/target/repository,${p2.target.repository},${p2.base.repository}</update.sites>
  22. </properties>
  23. <build>
  24. <plugins>
  25. <plugin>
  26. <artifactId>maven-antrun-plugin</artifactId>
  27. <version>1.1</version>
  28. <executions>
  29. <execution>
  30. <id>download.distro</id>
  31. <phase>prepare-package</phase>
  32. <configuration>
  33. <tasks>
  34. <taskdef resource="net/sf/antcontrib/antlib.xml"
  35. classpathref="maven.plugin.classpath" />
  36. <property name="download.distro.src"
  37. value="${eclipse.mirror.url}/technology/epp/downloads/release/juno/SR2" />
  38. <property name="download.distro.dir"
  39. value="${project.build.directory}/../distro/download" />
  40. <for list="win32-win32-x86;win32-win32-x86_64;macosx-cocoa-x86_64"
  41. param="environment"
  42. delimiter=";"
  43. parallel="false">
  44. <sequential>
  45. <propertyregex property="distro.os"
  46. input="@{environment}"
  47. override="true"
  48. regexp="([^,]*)-([^\,]*)-([^\,]*)"
  49. select="\1"
  50. casesensitive="false" />
  51. <propertyregex property="distro.ws"
  52. input="@{environment}"
  53. override="true"
  54. regexp="([^,]*)-([^\,]*)-([^\,]*)"
  55. select="\2"
  56. casesensitive="false" />
  57. <propertyregex property="distro.arch"
  58. input="@{environment}"
  59. override="true"
  60. regexp="([^,]*)-([^\,]*)-([^\,]*)"
  61. select="\3"
  62. casesensitive="false" />
  63. <echo>distro.os ${distro.os} </echo>
  64. <echo>distro.ws ${distro.ws} </echo>
  65. <echo>distro.arch ${distro.arch} </echo>
  66. <!-- naming is platform specific, so we have to make a distinction
  67. here (as we only have two platforms, we do not have to make any other distinctions
  68. so far) -->
  69. <if>
  70. <and>
  71. <equals arg1="${distro.os}" arg2="win32" />
  72. <equals arg1="${distro.ws}" arg2="win32" />
  73. <equals arg1="${distro.arch}" arg2="x86" />
  74. </and>
  75. <then>
  76. <propertyregex property="distro.src.filename"
  77. input="eclipse-java-juno-SR2-win32.zip"
  78. override="true"
  79. regexp="(.*)"
  80. select="\1"
  81. casesensitive="false" />
  82. </then>
  83. </if>
  84. <if>
  85. <and>
  86. <equals arg1="${distro.os}" arg2="win32" />
  87. <equals arg1="${distro.ws}" arg2="win32" />
  88. <equals arg1="${distro.arch}" arg2="x86_64" />
  89. </and>
  90. <then>
  91. <propertyregex property="distro.src.filename"
  92. input="eclipse-java-juno-SR2-win32-x86_64.zip"
  93. override="true"
  94. regexp="(.*)"
  95. select="\1"
  96. casesensitive="false" />
  97. </then>
  98. </if>
  99. <if>
  100. <and>
  101. <equals arg1="${distro.os}" arg2="linux" />
  102. <equals arg1="${distro.ws}" arg2="gtk" />
  103. <equals arg1="${distro.arch}" arg2="x86_64" />
  104. </and>
  105. <then>
  106. <propertyregex property="distro.src.filename"
  107. input="eclipse-java-juno-SR2-linux-gtk-x86_64.tar.gz"
  108. override="true"
  109. regexp="(.*)"
  110. select="\1"
  111. casesensitive="false" />
  112. </then>
  113. </if>
  114. <if>
  115. <and>
  116. <equals arg1="${distro.os}" arg2="linux" />
  117. <equals arg1="${distro.ws}" arg2="gtk" />
  118. <equals arg1="${distro.arch}" arg2="x86" />
  119. </and>
  120. <then>
  121. <propertyregex property="distro.src.filename"
  122. input="eclipse-java-juno-SR2-linux-gtk.tar.gz"
  123. override="true"
  124. regexp="(.*)"
  125. select="\1"
  126. casesensitive="false" />
  127. </then>
  128. </if>
  129. <if>
  130. <and>
  131. <equals arg1="${distro.os}" arg2="macosx" />
  132. <equals arg1="${distro.ws}" arg2="cocoa" />
  133. <equals arg1="${distro.arch}" arg2="x86_64" />
  134. </and>
  135. <then>
  136. <propertyregex property="distro.src.filename"
  137. input="eclipse-java-juno-SR2-macosx-cocoa-x86_64.tar.gz"
  138. override="true"
  139. regexp="(.*)"
  140. select="\1"
  141. casesensitive="false" />
  142. </then>
  143. </if>
  144. <if>
  145. <not>
  146. <available file="${download.distro.dir}"
  147. type="dir" />
  148. </not>
  149. <then>
  150. <echo>mkdir ${download.distro.dir}</echo>
  151. <mkdir dir="${download.distro.dir}" />
  152. </then>
  153. </if>
  154. <if>
  155. <not>
  156. <available file="${download.distro.dir}/${distro.src.filename}" />
  157. </not>
  158. <then>
  159. <trycatch>
  160. <try>
  161. <get src="${download.distro.src}/${distro.src.filename}"
  162. dest="${download.distro.dir}/${distro.src.filename}" />
  163. </try>
  164. <catch>
  165. <echo>delete ${download.distro.dir}</echo>
  166. <delete file="${download.distro.dir}/${distro.src.filename}" />
  167. </catch>
  168. </trycatch>
  169. </then>
  170. </if>
  171. <if>
  172. <available file="${distro.work.dir}/@{environment}" type="dir" />
  173. <then>
  174. <delete dir="${distro.work.dir}/@{environment}" />
  175. </then>
  176. </if>
  177. <mkdir dir="${distro.work.dir}/@{environment}"/>
  178. <if>
  179. <or>
  180. <equals arg1="${distro.os}" arg2="win32" />
  181. </or>
  182. <then>
  183. <unzip src="${download.distro.dir}/${distro.src.filename}"
  184. dest="${distro.work.dir}/@{environment}/" />
  185. </then>
  186. <else>
  187. <exec dir="${distro.work.dir}/@{environment}" executable="tar">
  188. <arg line="-xzf ${download.distro.dir}/${distro.src.filename}" />
  189. </exec>
  190. </else>
  191. </if>
  192. </sequential>
  193. </for>
  194. </tasks>
  195. </configuration>
  196. <goals>
  197. <goal>run</goal>
  198. </goals>
  199. </execution>
  200. <execution>
  201. <id>repackage.distro</id>
  202. <phase>verify</phase>
  203. <goals>
  204. <goal>run</goal>
  205. </goals>
  206. <configuration>
  207. <tasks>
  208. <taskdef resource="net/sf/antcontrib/antlib.xml"
  209. classpathref="maven.plugin.classpath" />
  210. <for list="win32-win32-x86;win32-win32-x86_64;macosx-cocoa-x86_64"
  211. param="environment"
  212. delimiter=";"
  213. parallel="false">
  214. <sequential>
  215. <propertyregex property="distro.os"
  216. input="@{environment}"
  217. override="true"
  218. regexp="([^,]*)-([^\,]*)-([^\,]*)"
  219. select="\1"
  220. casesensitive="false" />
  221. <propertyregex property="distro.ws"
  222. input="@{environment}"
  223. override="true"
  224. regexp="([^,]*)-([^\,]*)-([^\,]*)"
  225. select="\2"
  226. casesensitive="false" />
  227. <propertyregex property="distro.arch"
  228. input="@{environment}"
  229. override="true"
  230. regexp="([^,]*)-([^\,]*)-([^\,]*)"
  231. select="\3"
  232. casesensitive="false" />
  233. <echo>mkdir ${distro.dir} for yakindu-sct-juno-SR1-${distro.os}-${distro.ws}-${distro.arch}.zip</echo>
  234. <mkdir dir="${distro.dir}" />
  235. <if>
  236. <or>
  237. <equals arg1="${distro.os}" arg2="win32" />
  238. </or>
  239. <then>
  240. <exec dir="${distro.work.dir}/@{environment}" executable="zip">
  241. <arg line="-q -r ${distro.dir}/yakindu-sct-juno-SR1-${distro.os}-${distro.ws}-${distro.arch}.zip eclipse" />
  242. </exec>
  243. </then>
  244. <else>
  245. <exec dir="${distro.work.dir}/@{environment}" executable="tar">
  246. <arg line="-czf ${distro.dir}/yakindu-sct-juno-SR1-${distro.os}-${distro.ws}-${distro.arch}.tar.gz eclipse" />
  247. </exec>
  248. </else>
  249. </if>
  250. </sequential>
  251. </for>
  252. </tasks>
  253. </configuration>
  254. </execution>
  255. </executions>
  256. <dependencies>
  257. <dependency>
  258. <groupId>ant-contrib</groupId>
  259. <artifactId>ant-contrib</artifactId>
  260. <version>1.0b3</version>
  261. <exclusions>
  262. <exclusion>
  263. <groupId>ant</groupId>
  264. <artifactId>ant</artifactId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. <dependency>
  269. <groupId>ant</groupId>
  270. <artifactId>ant-nodeps</artifactId>
  271. <version>1.6.5</version>
  272. </dependency>
  273. </dependencies>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.eclipse.tycho.extras</groupId>
  277. <artifactId>tycho-eclipserun-plugin</artifactId>
  278. <version>${tycho-extras-version}</version>
  279. <executions>
  280. <execution>
  281. <id>install-features-into-distro-win32-win-32-x86</id>
  282. <phase>package</phase>
  283. <goals>
  284. <goal>eclipse-run</goal>
  285. </goals>
  286. <configuration>
  287. <appArgLine>-consoleLog -clean -nosplash -debug -consoleLog -application org.eclipse.equinox.p2.director -destination ${distro.work.dir}/win32-win32-x86/eclipse/ -profile ${profile} -p2.os win32 -p2.ws win32 -p2.arch x86 -repository ${update.sites} -installIUs ${features}
  288. </appArgLine>
  289. </configuration>
  290. </execution>
  291. <execution>
  292. <id>install-features-into-distro-win32-win-32-x86_64</id>
  293. <phase>package</phase>
  294. <goals>
  295. <goal>eclipse-run</goal>
  296. </goals>
  297. <configuration>
  298. <appArgLine>-consoleLog -clean -nosplash -debug -consoleLog -application org.eclipse.equinox.p2.director -destination ${distro.work.dir}/win32-win32-x86_64/eclipse/ -profile ${profile} -p2.os win32 -p2.ws win32 -p2.arch x86_64 -repository ${update.sites} -installIUs ${features}
  299. </appArgLine>
  300. </configuration>
  301. </execution>
  302. <execution>
  303. <id>install-features-into-distro-macosx-cocoa-x86_64</id>
  304. <phase>package</phase>
  305. <goals>
  306. <goal>eclipse-run</goal>
  307. </goals>
  308. <configuration>
  309. <appArgLine>-consoleLog -clean -nosplash -debug -consoleLog -application org.eclipse.equinox.p2.director -destination ${distro.work.dir}/macosx-cocoa-x86_64/eclipse/ -profile ${profile} -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -repository ${update.sites} -installIUs ${features}
  310. </appArgLine>
  311. </configuration>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. </plugins>
  316. <pluginManagement>
  317. <plugins>
  318. <plugin>
  319. <groupId>org.eclipse.tycho.extras</groupId>
  320. <artifactId>tycho-eclipserun-plugin</artifactId>
  321. <version>${tycho-extras-version}</version>
  322. <configuration>
  323. <argLine>-Declipse.p2.mirrors=false</argLine>
  324. <dependencies>
  325. <dependency>
  326. <artifactId>org.eclipse.equinox.p2.transport.ecf</artifactId>
  327. <type>eclipse-plugin</type>
  328. </dependency>
  329. <dependency>
  330. <artifactId>org.eclipse.core.net</artifactId>
  331. <type>eclipse-plugin</type>
  332. </dependency>
  333. <dependency>
  334. <artifactId>org.eclipse.equinox.p2.repository</artifactId>
  335. <type>eclipse-plugin</type>
  336. </dependency>
  337. <dependency>
  338. <artifactId>org.eclipse.equinox.p2.touchpoint.natives</artifactId>
  339. <type>eclipse-plugin</type>
  340. </dependency>
  341. <dependency>
  342. <artifactId>org.eclipse.equinox.p2.touchpoint.eclipse</artifactId>
  343. <type>eclipse-plugin</type>
  344. </dependency>
  345. <dependency>
  346. <artifactId>org.eclipse.equinox.p2.artifact.repository
  347. </artifactId>
  348. <type>eclipse-plugin</type>
  349. </dependency>
  350. <dependency>
  351. <artifactId>org.eclipse.equinox.p2.director.app</artifactId>
  352. <type>eclipse-plugin</type>
  353. </dependency>
  354. <dependency>
  355. <artifactId>org.eclipse.equinox.ds</artifactId>
  356. <type>eclipse-plugin</type>
  357. </dependency>
  358. </dependencies>
  359. </configuration>
  360. </plugin>
  361. </plugins>
  362. </pluginManagement>
  363. </build>
  364. </project>