pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  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.sct</groupId>
  7. <artifactId>org.yakindu.sct.releng</artifactId>
  8. <version>2.1.2-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.18.0</tycho-version>
  13. <tycho-extras-version>0.18.0</tycho-extras-version>
  14. <antrun-version>1.6</antrun-version>
  15. <p2.base.repository>file:../org.yakindu.base.repository/target/repository</p2.base.repository>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. </properties>
  18. <build>
  19. <!--resources> <resource> <directory> [your folder here] </directory> </resource>
  20. </resources -->
  21. <plugins>
  22. <plugin>
  23. <groupId>org.apache.maven.plugins</groupId>
  24. <artifactId>maven-resources-plugin</artifactId>
  25. <version>2.5</version>
  26. <configuration>
  27. <encoding>UTF-8</encoding>
  28. </configuration>
  29. </plugin>
  30. <plugin>
  31. <!-- enable tycho build extension -->
  32. <groupId>org.eclipse.tycho</groupId>
  33. <artifactId>tycho-maven-plugin</artifactId>
  34. <version>${tycho-version}</version>
  35. <extensions>true</extensions>
  36. </plugin>
  37. <plugin>
  38. <groupId>org.apache.maven.plugins</groupId>
  39. <artifactId>maven-antrun-plugin</artifactId>
  40. <version>${antrun-version}</version>
  41. <executions>
  42. <execution>
  43. <id>replace-build-token</id>
  44. <phase>generate-sources</phase>
  45. <configuration>
  46. <target>
  47. <taskdef resource="net/sf/antcontrib/antcontrib.properties"
  48. classpathref="maven.plugin.classpath" />
  49. <if>
  50. <available file="about.mappings" />
  51. <then>
  52. <echo
  53. message="Replacing @build@ token within about.mappings with build id." />
  54. <replace file="about.mappings">
  55. <replacefilter token="@build@"
  56. value="${unqualifiedVersion}.${buildQualifier}" />
  57. </replace>
  58. </then>
  59. </if>
  60. <if>
  61. <available file="javadocOptions.txt" />
  62. <then>
  63. <echo
  64. message="Replacing @build@ token within javadocOptions.txt with build id." />
  65. <replace file="javadocOptions.txt">
  66. <replacefilter token="@build@"
  67. value="${unqualifiedVersion}.${buildQualifier}" />
  68. </replace>
  69. </then>
  70. </if>
  71. </target>
  72. </configuration>
  73. <goals>
  74. <goal>run</goal>
  75. </goals>
  76. </execution>
  77. <execution>
  78. <id>replace-back-build-token</id>
  79. <phase>verify</phase>
  80. <configuration>
  81. <target>
  82. <taskdef resource="net/sf/antcontrib/antcontrib.properties"
  83. classpathref="maven.plugin.classpath" />
  84. <if>
  85. <available file="about.mappings" />
  86. <then>
  87. <echo
  88. message="Replacing back build id within about.mappings with @build@ token." />
  89. <replace file="about.mappings">
  90. <replacefilter token="${unqualifiedVersion}.${buildQualifier}"
  91. value="@build@" />
  92. </replace>
  93. </then>
  94. </if>
  95. <if>
  96. <available file="javadocOptions.txt" />
  97. <then>
  98. <echo
  99. message="Replacing back build id within javadocOptions.txt with @build@ token." />
  100. <replace file="javadocOptions.txt">
  101. <replacefilter token="${unqualifiedVersion}.${buildQualifier}"
  102. value="@build@" />
  103. </replace>
  104. </then>
  105. </if>
  106. </target>
  107. </configuration>
  108. <goals>
  109. <goal>run</goal>
  110. </goals>
  111. </execution>
  112. </executions>
  113. <dependencies>
  114. <dependency>
  115. <groupId>ant-contrib</groupId>
  116. <artifactId>ant-contrib</artifactId>
  117. <version>20020829</version>
  118. </dependency>
  119. </dependencies>
  120. </plugin>
  121. <!-- Configure sources (Source feature has to be added to category manually) -->
  122. <plugin>
  123. <groupId>org.eclipse.tycho</groupId>
  124. <artifactId>tycho-source-plugin</artifactId>
  125. <version>${tycho-version}</version>
  126. <executions>
  127. <execution>
  128. <id>attach-source</id>
  129. <goals>
  130. <goal>plugin-source</goal>
  131. </goals>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. <plugin>
  136. <groupId>org.eclipse.tycho.extras</groupId>
  137. <artifactId>tycho-source-feature-plugin</artifactId>
  138. <version>${tycho-extras-version}</version>
  139. <executions>
  140. <execution>
  141. <id>source-feature</id>
  142. <phase>package</phase>
  143. <goals>
  144. <goal>source-feature</goal>
  145. </goals>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <!-- pack plugins with pack200, which are smaller class files (Part I) -->
  150. <plugin>
  151. <groupId>org.eclipse.tycho.extras</groupId>
  152. <artifactId>tycho-pack200a-plugin</artifactId>
  153. <version>${tycho-extras-version}</version>
  154. <executions>
  155. <execution>
  156. <id>pack200-normalize</id>
  157. <goals>
  158. <goal>normalize</goal>
  159. </goals>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. <!-- TODO sign here -->
  164. <!-- pack plugins with pack200, which are smaller class files (Part II)
  165. and add them to p2-metadata -->
  166. <plugin>
  167. <groupId>org.eclipse.tycho.extras</groupId>
  168. <artifactId>tycho-pack200b-plugin</artifactId>
  169. <version>${tycho-extras-version}</version>
  170. <executions>
  171. <execution>
  172. <id>pack200-pack</id>
  173. <goals>
  174. <goal>pack</goal>
  175. </goals>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. <!-- Then, alter p2-metadata to make the .pack.gz and the source bundles
  180. visible from other modules -->
  181. <plugin>
  182. <groupId>org.eclipse.tycho</groupId>
  183. <artifactId>tycho-p2-plugin</artifactId>
  184. <version>${tycho-version}</version>
  185. <executions>
  186. <execution>
  187. <id>p2-metadata</id>
  188. <goals>
  189. <goal>p2-metadata</goal>
  190. </goals>
  191. <phase>package</phase>
  192. </execution>
  193. </executions>
  194. <configuration>
  195. <defaultP2Metadata>false</defaultP2Metadata>
  196. </configuration>
  197. </plugin>
  198. <plugin>
  199. <groupId>org.eclipse.tycho</groupId>
  200. <artifactId>target-platform-configuration</artifactId>
  201. <version>${tycho-version}</version>
  202. </plugin>
  203. </plugins>
  204. <pluginManagement>
  205. <plugins>
  206. <!-- Avoid the generation of maven archive information in the META-INF
  207. folder -->
  208. <plugin>
  209. <groupId>org.eclipse.tycho</groupId>
  210. <artifactId>tycho-packaging-plugin</artifactId>
  211. <version>${tycho-version}</version>
  212. <configuration>
  213. <archive>
  214. <addMavenDescriptor>false</addMavenDescriptor>
  215. </archive>
  216. </configuration>
  217. </plugin>
  218. <!-- TYCHO -->
  219. <plugin>
  220. <groupId>org.eclipse.tycho</groupId>
  221. <artifactId>tycho-compiler-plugin</artifactId>
  222. <version>${tycho-version}</version>
  223. <configuration>
  224. <encoding>UTF-8</encoding>
  225. <source>6.0</source>
  226. <target>6.0</target>
  227. </configuration>
  228. </plugin>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-resources-plugin</artifactId>
  232. <version>2.5</version>
  233. <configuration>
  234. <encoding>UTF-8</encoding>
  235. </configuration>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.codehaus.mojo</groupId>
  239. <artifactId>build-helper-maven-plugin</artifactId>
  240. <version>1.3</version>
  241. <executions>
  242. <execution>
  243. <id>add-source</id>
  244. <phase>generate-sources</phase>
  245. <goals>
  246. <goal>add-source</goal>
  247. </goals>
  248. <configuration>
  249. <sources>
  250. <source>${project.build.directory}/xtend-gen</source>
  251. </sources>
  252. </configuration>
  253. </execution>
  254. </executions>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-clean-plugin</artifactId>
  259. <version>2.4.1</version>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.fornax.toolsupport</groupId>
  263. <artifactId>fornax-oaw-m2-plugin</artifactId>
  264. <version>3.3.0</version>
  265. </plugin>
  266. <plugin>
  267. <groupId>org.eclipse.tycho.extras</groupId>
  268. <artifactId>tycho-source-feature-plugin</artifactId>
  269. <version>${tycho-extras-version}</version>
  270. <executions>
  271. <execution>
  272. <id>source-feature</id>
  273. <phase>package</phase>
  274. <goals>
  275. <goal>source-feature</goal>
  276. </goals>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.eclipse.xtend</groupId>
  282. <artifactId>xtend-maven-plugin</artifactId>
  283. <version>2.4.2</version>
  284. <configuration>
  285. <!-- need to prefix by basedir to generate to currently built module -->
  286. <outputDirectory>${basedir}/xtend-gen</outputDirectory>
  287. </configuration>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.eclipse.tycho</groupId>
  291. <artifactId>tycho-p2-repository-plugin</artifactId>
  292. <version>${tycho-version}</version>
  293. </plugin>
  294. <!-- APACHE MAVEN PLUGINS -->
  295. <plugin>
  296. <groupId>org.apache.maven.plugins</groupId>
  297. <artifactId>maven-antrun-plugin</artifactId>
  298. <version>1.3</version>
  299. </plugin>
  300. <plugin>
  301. <groupId>org.apache.maven.plugins</groupId>
  302. <artifactId>maven-assembly-plugin</artifactId>
  303. <version>2.2-beta-4</version>
  304. </plugin>
  305. <plugin>
  306. <artifactId>maven-release-plugin</artifactId>
  307. <configuration>
  308. <preparationGoals>clean -DnewVersion=${releaseVersion}
  309. -Dprudent=true
  310. org.eclipse.tycho:tycho-versions-plugin:set-version
  311. verify
  312. scm:checkin</preparationGoals>
  313. <arguments>-Prelease</arguments>
  314. </configuration>
  315. </plugin>
  316. <plugin>
  317. <groupId>org.eclipse.dash.maven</groupId>
  318. <artifactId>eclipse-signing-maven-plugin</artifactId>
  319. <version>1.0.2</version>
  320. </plugin>
  321. <plugin>
  322. <!-- Base configuration of target environments -->
  323. <groupId>org.eclipse.tycho</groupId>
  324. <artifactId>target-platform-configuration</artifactId>
  325. <version>${tycho-version}</version>
  326. <configuration>
  327. <environments>
  328. <environment>
  329. <os>linux</os>
  330. <ws>gtk</ws>
  331. <arch>x86</arch>
  332. </environment>
  333. <environment>
  334. <os>linux</os>
  335. <ws>gtk</ws>
  336. <arch>x86_64</arch>
  337. </environment>
  338. <environment>
  339. <os>win32</os>
  340. <ws>win32</ws>
  341. <arch>x86</arch>
  342. </environment>
  343. <environment>
  344. <os>win32</os>
  345. <ws>win32</ws>
  346. <arch>x86_64</arch>
  347. </environment>
  348. <environment>
  349. <os>macosx</os>
  350. <ws>cocoa</ws>
  351. <arch>x86_64</arch>
  352. </environment>
  353. </environments>
  354. </configuration>
  355. </plugin>
  356. </plugins>
  357. </pluginManagement>
  358. </build>
  359. <pluginRepositories>
  360. <!-- Fornax Workflow Runner plugin -->
  361. <pluginRepository>
  362. <id>fornax</id>
  363. <url>http://www.fornax-platform.org/m2/repository</url>
  364. <releases>
  365. <enabled>true</enabled>
  366. </releases>
  367. <snapshots>
  368. <enabled>false</enabled>
  369. </snapshots>
  370. </pluginRepository>
  371. <pluginRepository>
  372. <id>eclipse-xtend</id>
  373. <url>http://build.eclipse.org/common/xtend/maven</url>
  374. </pluginRepository>
  375. </pluginRepositories>
  376. <repositories>
  377. <repository>
  378. <id>yakindu-base</id>
  379. <layout>p2</layout>
  380. <url>${p2.base.repository}</url>
  381. </repository>
  382. </repositories>
  383. <profiles>
  384. <profile>
  385. <id>builds-target</id>
  386. <activation>
  387. <!-- ActiveByDefault does not work because of macosx-profile with is
  388. triggered by property -->
  389. <!-- <activeByDefault>true</activeByDefault> -->
  390. <property>
  391. <name>!noBuildsTarget</name>
  392. </property>
  393. </activation>
  394. <properties>
  395. <p2.base.repository>https://projects.itemis.de/data/yakindu/base/kepler/snapshot/</p2.base.repository>
  396. </properties>
  397. </profile>
  398. <profile>
  399. <id>Indigo.target</id>
  400. <build>
  401. <plugins>
  402. <plugin>
  403. <groupId>org.eclipse.tycho</groupId>
  404. <artifactId>target-platform-configuration</artifactId>
  405. <version>${tycho-version}</version>
  406. <configuration>
  407. <!-- add target file content to target platform -->
  408. <target>
  409. <artifact>
  410. <groupId>org.yakindu.base</groupId>
  411. <artifactId>org.yakindu.base.target</artifactId>
  412. <version>2.1.2-SNAPSHOT</version>
  413. <classifier>Juno</classifier>
  414. </artifact>
  415. </target>
  416. </configuration>
  417. </plugin>
  418. </plugins>
  419. </build>
  420. </profile>
  421. <profile>
  422. <id>Kepler.target</id>
  423. <activation>
  424. <!-- ActiveByDefault does not work because of macosx-profile with is
  425. triggered by property -->
  426. <!-- <activeByDefault>true</activeByDefault> -->
  427. <property>
  428. <name>!noKeplerTarget</name>
  429. </property>
  430. </activation>
  431. <build>
  432. <plugins>
  433. <plugin>
  434. <groupId>org.eclipse.tycho</groupId>
  435. <artifactId>target-platform-configuration</artifactId>
  436. <version>${tycho-version}</version>
  437. <configuration>
  438. <!-- add target file content to target platform -->
  439. <target>
  440. <artifact>
  441. <groupId>org.yakindu.base</groupId>
  442. <artifactId>org.yakindu.base.target</artifactId>
  443. <version>2.1.2-SNAPSHOT</version>
  444. <classifier>Kepler</classifier>
  445. </artifact>
  446. </target>
  447. </configuration>
  448. </plugin>
  449. </plugins>
  450. </build>
  451. </profile>
  452. <profile>
  453. <id>CI</id>
  454. <!-- Test failures are collected by jenkins and evaluated for instable
  455. builds -->
  456. <properties>
  457. <testFailureIgnore>true</testFailureIgnore>
  458. </properties>
  459. </profile>
  460. <profile>
  461. <id>macosx</id>
  462. <activation>
  463. <os>
  464. <family>mac</family>
  465. </os>
  466. </activation>
  467. <properties>
  468. <ui.test.vmargs>-Xmx512m -XX:MaxPermSize=256m -XstartOnFirstThread</ui.test.vmargs>
  469. </properties>
  470. </profile>
  471. <profile>
  472. <id>other-os</id>
  473. <activation>
  474. <os>
  475. <family>!mac</family>
  476. </os>
  477. </activation>
  478. <properties>
  479. <ui.test.vmargs>-Xmx512m -XX:MaxPermSize=256m</ui.test.vmargs>
  480. </properties>
  481. </profile>
  482. </profiles>
  483. <modules>
  484. <!-- Only for access without m2-repo -->
  485. <module>../org.yakindu.base.target</module>
  486. <module>../org.yakindu.sct.commons</module>
  487. <module>../org.yakindu.sct.doc.user</module>
  488. <module>../org.yakindu.sct.examples.trafficlight</module>
  489. <module>../org.yakindu.sct.generator.core</module>
  490. <module>../org.yakindu.sct.generator.genmodel</module>
  491. <module>../org.yakindu.sct.generator.genmodel.test</module>
  492. <module>../org.yakindu.sct.generator.genmodel.ui</module>
  493. <module>../org.yakindu.sct.model.sexec</module>
  494. <module>../org.yakindu.sct.model.sexec.edit</module>
  495. <module>../org.yakindu.sct.model.sexec.test</module>
  496. <module>../org.yakindu.sct.model.sgen</module>
  497. <module>../org.yakindu.sct.model.sgen.edit</module>
  498. <module>../org.yakindu.sct.model.sgraph</module>
  499. <module>../org.yakindu.sct.model.sgraph.edit</module>
  500. <module>../org.yakindu.sct.model.sgraph.test</module>
  501. <module>../org.yakindu.sct.model.sgraph.ui</module>
  502. <module>../org.yakindu.sct.model.stext</module>
  503. <module>../org.yakindu.sct.model.stext.edit</module>
  504. <module>../org.yakindu.sct.model.stext.resource</module>
  505. <module>../org.yakindu.sct.model.stext.resource.test</module>
  506. <module>../org.yakindu.sct.model.stext.test</module>
  507. <module>../org.yakindu.sct.model.stext.ui</module>
  508. <module>../org.yakindu.sct.simulation.core</module>
  509. <module>../org.yakindu.sct.simulation.ui</module>
  510. <module>../org.yakindu.sct.simulation.core.sexec</module>
  511. <module>../org.yakindu.sct.simulation.ui.sexec</module>
  512. <module>../org.yakindu.sct.simulation.core.sexec.test</module>
  513. <module>../org.yakindu.sct.ui</module>
  514. <module>../org.yakindu.sct.ui.editor</module>
  515. <module>../org.yakindu.sct.ui.examples</module>
  516. <module>../org.yakindu.sct.ui.integration.stext</module>
  517. <module>../org.yakindu.sct.ui.navigator</module>
  518. <module>../org.yakindu.sct-feature</module>
  519. <module>../org.yakindu.sct.test.models</module>
  520. <module>../org.yakindu.sct.generator.c</module>
  521. <module>../org.yakindu.sct.generator.c.test</module>
  522. <module>../org.yakindu.sct.generator.c-feature</module>
  523. <module>../org.yakindu.sct.generator.cpp</module>
  524. <module>../org.yakindu.sct.generator.cpp.test</module>
  525. <module>../org.yakindu.sct.generator.java</module>
  526. <module>../org.yakindu.sct.generator.java.test</module>
  527. <module>../org.yakindu.sct.generator.java-feature</module>
  528. <module>../org.yakindu.sct.refactoring</module>
  529. <module>../org.yakindu.sct.refactoring.tests</module>
  530. <module>../org.yakindu.sct.generator-feature</module>
  531. <module>../org.yakindu.sct.sdk-feature</module>
  532. <module>../org.yakindu.sct.test-feature</module>
  533. <module>../org.yakindu.sct.repository</module>
  534. <module>../org.yakindu.sct.repository.full</module>
  535. <module>../org.yakindu.sct.compare</module>
  536. </modules>
  537. </project>