pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>be.uantwerpen.ansymo.semanticadaptation</groupId>
  6. <artifactId>parent</artifactId>
  7. <version>1.0.0-SNAPSHOT</version>
  8. <packaging>pom</packaging>
  9. <name>Semantics Adaptation Root
  10. </name>
  11. <!-- the mavenization is based on this approach https://github.com/xtext/maven-xtext-example -->
  12. <modules>
  13. <module>be.uantwerpen.ansymo.semanticadaptation.testframework</module>
  14. <module>be.uantwerpen.ansymo.semanticadaptation</module>
  15. <module>be.uantwerpen.ansymo.semanticadaptation.tests</module>
  16. <module>be.uantwerpen.ansymo.semanticadaptation.ide</module>
  17. <module>be.uantwerpen.ansymo.semanticadaptation.ui</module>
  18. <module>be.uantwerpen.ansymo.semanticadaptation.cg.cpp</module>
  19. <module>be.uantwerpen.ansymo.semanticadaptation.cg.canonical</module>
  20. <module>be.uantwerpen.ansymo.semanticadaptation.cg.cpp.tests</module>
  21. <module>features</module>
  22. <module>repository</module>
  23. </modules>
  24. <properties>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <xtext.version>2.11.0</xtext.version>
  27. <main.basedir>${project.basedir}</main.basedir>
  28. <tycho.version>1.0.0</tycho.version>
  29. </properties>
  30. <repositories>
  31. <repository>
  32. <id>eclipse</id>
  33. <layout>p2</layout>
  34. <url>http://download.eclipse.org/releases/neon</url>
  35. </repository>
  36. <repository>
  37. <id>Xtext Update Site</id>
  38. <layout>p2</layout>
  39. <!--url>http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/</url-->
  40. <url>http://download.eclipse.org/modeling/tmf/xtext/updates/releases/${xtext.version}/</url>
  41. </repository>
  42. <!--repository>
  43. <id>mvn</id>
  44. <url>http://mvnrepository.com/artifact</url>
  45. </repository-->
  46. </repositories>
  47. <build>
  48. <pluginManagement>
  49. <plugins>
  50. <!-- Enable JavaDoc but dont fail on error. This must be disabled for
  51. the Eclipse project in the IDE -->
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-javadoc-plugin</artifactId>
  55. <version>2.9</version>
  56. <executions>
  57. <execution>
  58. <id>attach-javadocs</id>
  59. <goals>
  60. <goal>jar</goal>
  61. </goals>
  62. </execution>
  63. </executions>
  64. <configuration>
  65. <failOnError>false</failOnError>
  66. <quiet>true</quiet>
  67. </configuration>
  68. </plugin>
  69. <!-- Configure the compiler for all Overture Projects -->
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-compiler-plugin</artifactId>
  73. <version>3.5.1</version>
  74. <configuration>
  75. <source>1.8</source>
  76. <target>1.8</target>
  77. </configuration>
  78. </plugin>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-surefire-plugin</artifactId>
  82. <version>2.13</version>
  83. <configuration>
  84. </configuration>
  85. </plugin>
  86. <!-- xtend-maven-plugin is in pluginManagement instead of in plugins
  87. so that it doesn't run before the exec-maven-plugin's *.mwe2 gen; this way
  88. we can list it after. -->
  89. <plugin>
  90. <groupId>org.eclipse.xtend</groupId>
  91. <artifactId>xtend-maven-plugin</artifactId>
  92. <version>${xtext.version}</version>
  93. <executions>
  94. <execution>
  95. <goals>
  96. <goal>compile</goal>
  97. <goal>xtend-install-debug-info</goal>
  98. <goal>testCompile</goal>
  99. <goal>xtend-test-install-debug-info</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. <configuration>
  104. <xtendAsPrimaryDebugSource>true</xtendAsPrimaryDebugSource>
  105. <!--outputDirectory>${project.build.directory}/xtend-gen/main</outputDirectory-->
  106. <testOutputDirectory>${project.build.directory}/xtend-gen/test</testOutputDirectory>
  107. <writeTraceFiles>true</writeTraceFiles>
  108. <outputDirectory>xtend-gen</outputDirectory>
  109. </configuration>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-clean-plugin</artifactId>
  114. <version>2.5</version>
  115. <executions>
  116. <execution>
  117. <id>gen-clean</id>
  118. <goals>
  119. <goal>clean</goal>
  120. </goals>
  121. <configuration>
  122. <filesets>
  123. <fileset>
  124. <directory>${basedir}/xtend-gen</directory>
  125. </fileset>
  126. </filesets>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.eclipse.tycho</groupId>
  133. <artifactId>tycho-maven-plugin</artifactId>
  134. <version>${tycho.version}</version>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.eclipse.tycho</groupId>
  138. <artifactId>target-platform-configuration</artifactId>
  139. <version>${tycho.version}</version>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.eclipse.tycho</groupId>
  143. <artifactId>tycho-p2-director-plugin</artifactId>
  144. <version>${tycho.version}</version>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.eclipse.tycho</groupId>
  148. <artifactId>tycho-packaging-plugin</artifactId>
  149. <version>${tycho.version}</version>
  150. <configuration>
  151. <archive>
  152. <addMavenDescriptor>false</addMavenDescriptor>
  153. </archive>
  154. </configuration>
  155. </plugin>
  156. <!-- Use the below to update the version numbers of the poms,
  157. manifests, and feature.xml files with the commandline:
  158. $ mvn -Dtycho.mode=maven tycho-versions:set-version -DnewVersion=2.0.2
  159. Don't commit the changes to the export-packages lines in
  160. the manifests, though.
  161. -->
  162. <plugin>
  163. <groupId>org.eclipse.tycho</groupId>
  164. <artifactId>tycho-versions-plugin</artifactId>
  165. <version>${tycho.version}</version>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.eclipse.m2e</groupId>
  169. <artifactId>lifecycle-mapping</artifactId>
  170. <version>1.0.0</version>
  171. <configuration>
  172. <lifecycleMappingMetadata>
  173. <pluginExecutions>
  174. <pluginExecution>
  175. <pluginExecutionFilter>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-dependency-plugin</artifactId>
  178. <versionRange>[1.0.0,)</versionRange>
  179. <goals>
  180. <goal>copy-dependencies</goal>
  181. </goals>
  182. </pluginExecutionFilter>
  183. <action>
  184. <ignore />
  185. </action>
  186. </pluginExecution>
  187. </pluginExecutions>
  188. </lifecycleMappingMetadata>
  189. </configuration>
  190. </plugin>
  191. </plugins>
  192. </pluginManagement>
  193. <plugins>
  194. <plugin>
  195. <groupId>org.eclipse.tycho</groupId>
  196. <artifactId>tycho-maven-plugin</artifactId>
  197. <extensions>true</extensions>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.eclipse.tycho</groupId>
  201. <artifactId>target-platform-configuration</artifactId>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-javadoc-plugin</artifactId>
  206. <configuration>
  207. <skip>true</skip>
  208. </configuration>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. <profiles>
  213. <!-- These next five profiles will autodetect which OS maven is
  214. being executed on and then build the matching version of
  215. Overture for that OS. -jwc/23Jan2014
  216. -->
  217. <profile>
  218. <id>win</id>
  219. <activation>
  220. <activeByDefault>false</activeByDefault>
  221. <os>
  222. <family>windows</family>
  223. <arch>x86</arch>
  224. </os>
  225. </activation>
  226. <build>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.eclipse.tycho</groupId>
  230. <artifactId>target-platform-configuration</artifactId>
  231. <configuration>
  232. <environments>
  233. <environment>
  234. <os>win32</os>
  235. <ws>win32</ws>
  236. <arch>x86</arch>
  237. </environment>
  238. </environments>
  239. </configuration>
  240. </plugin>
  241. </plugins>
  242. </build>
  243. </profile>
  244. <profile>
  245. <id>win64</id>
  246. <activation>
  247. <activeByDefault>false</activeByDefault>
  248. <os>
  249. <family>windows</family>
  250. <arch>amd64</arch>
  251. </os>
  252. </activation>
  253. <build>
  254. <plugins>
  255. <plugin>
  256. <groupId>org.eclipse.tycho</groupId>
  257. <artifactId>target-platform-configuration</artifactId>
  258. <configuration>
  259. <environments>
  260. <environment>
  261. <os>win32</os>
  262. <ws>win32</ws>
  263. <arch>x86_64</arch>
  264. </environment>
  265. </environments>
  266. </configuration>
  267. </plugin>
  268. </plugins>
  269. </build>
  270. </profile>
  271. <profile>
  272. <id>mac</id>
  273. <activation>
  274. <activeByDefault>false</activeByDefault>
  275. <os>
  276. <family>mac</family>
  277. </os>
  278. </activation>
  279. <build>
  280. <plugins>
  281. <plugin>
  282. <groupId>org.eclipse.tycho</groupId>
  283. <artifactId>target-platform-configuration</artifactId>
  284. <configuration>
  285. <environments>
  286. <environment>
  287. <os>macosx</os>
  288. <ws>cocoa</ws>
  289. <arch>x86_64</arch>
  290. </environment>
  291. </environments>
  292. </configuration>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.eclipse.tycho</groupId>
  296. <artifactId>tycho-p2-repository-plugin</artifactId>
  297. <version>${tycho.version}</version>
  298. <configuration>
  299. <includeAllDependencies>true</includeAllDependencies>
  300. <profileProperties>
  301. <macosx-bundled>true</macosx-bundled>
  302. </profileProperties>
  303. </configuration>
  304. </plugin>
  305. </plugins>
  306. </build>
  307. </profile>
  308. <profile>
  309. <id>linux</id>
  310. <activation>
  311. <activeByDefault>false</activeByDefault>
  312. <os>
  313. <family>unix</family>
  314. <name>linux</name>
  315. <arch>x86</arch>
  316. </os>
  317. </activation>
  318. <build>
  319. <plugins>
  320. <plugin>
  321. <groupId>org.eclipse.tycho</groupId>
  322. <artifactId>target-platform-configuration</artifactId>
  323. <configuration>
  324. <environments>
  325. <environment>
  326. <os>linux</os>
  327. <ws>gtk</ws>
  328. <arch>x86</arch>
  329. </environment>
  330. </environments>
  331. </configuration>
  332. </plugin>
  333. </plugins>
  334. </build>
  335. </profile>
  336. <profile>
  337. <id>linux64</id>
  338. <activation>
  339. <activeByDefault>false</activeByDefault>
  340. <os>
  341. <family>unix</family>
  342. <name>linux</name>
  343. <arch>amd64</arch>
  344. </os>
  345. </activation>
  346. <build>
  347. <plugins>
  348. <plugin>
  349. <groupId>org.eclipse.tycho</groupId>
  350. <artifactId>target-platform-configuration</artifactId>
  351. <configuration>
  352. <environments>
  353. <environment>
  354. <os>linux</os>
  355. <ws>gtk</ws>
  356. <arch>x86</arch>
  357. </environment>
  358. <environment>
  359. <os>linux</os>
  360. <ws>gtk</ws>
  361. <arch>x86_64</arch>
  362. </environment>
  363. </environments>
  364. </configuration>
  365. </plugin>
  366. </plugins>
  367. </build>
  368. </profile>
  369. <!-- Use this profile to build Overture for all platforms, but you
  370. may need to add -P\!linux (or whichever os) to disable the
  371. autodetected profile (per above), otherwise the autodetected
  372. profile may take precedence over the command-line specified
  373. profile. -jwc/23Jan2014
  374. -->
  375. <profile>
  376. <id>all-platforms</id>
  377. <build>
  378. <plugins>
  379. <plugin>
  380. <groupId>org.eclipse.tycho</groupId>
  381. <artifactId>target-platform-configuration</artifactId>
  382. <configuration>
  383. <environments>
  384. <environment>
  385. <os>win32</os>
  386. <ws>win32</ws>
  387. <arch>x86</arch>
  388. </environment>
  389. <environment>
  390. <os>win32</os>
  391. <ws>win32</ws>
  392. <arch>x86_64</arch>
  393. </environment>
  394. <environment>
  395. <os>linux</os>
  396. <ws>gtk</ws>
  397. <arch>x86</arch>
  398. </environment>
  399. <environment>
  400. <os>linux</os>
  401. <ws>gtk</ws>
  402. <arch>x86_64</arch>
  403. </environment>
  404. <environment>
  405. <os>macosx</os>
  406. <ws>cocoa</ws>
  407. <arch>x86_64</arch>
  408. </environment>
  409. </environments>
  410. </configuration>
  411. </plugin>
  412. </plugins>
  413. </build>
  414. </profile>
  415. </profiles>
  416. </project>