pom.xml 12 KB

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