pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <!-- the mavenization is based on this approach https://github.com/xtext/maven-xtext-example -->
  10. <modules>
  11. <module>be.uantwerpen.ansymo.semanticadaptation.testframework</module>
  12. <module>be.uantwerpen.ansymo.semanticadaptation</module>
  13. <module>be.uantwerpen.ansymo.semanticadaptation.tests</module>
  14. <module>be.uantwerpen.ansymo.semanticadaptation.ide</module>
  15. <module>be.uantwerpen.ansymo.semanticadaptation.ui</module>
  16. <module>be.uantwerpen.ansymo.semanticadaptation.cg.cpp</module>
  17. <module>be.uantwerpen.ansymo.semanticadaptation.cg.cpp.tests</module>
  18. <!--module>../my.mavenized.herolanguage.ui</module>
  19. <module>../my.mavenized.herolanguage.tests</module>
  20. <module>../my.mavenized.herolanguage.sdk</module>
  21. <module>../my.mavenized.herolanguage.updatesite</module-->
  22. </modules>
  23. <properties>
  24. <tycho-version>1.0.0</tycho-version>
  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. </properties>
  29. <repositories>
  30. <repository>
  31. <id>eclipse</id>
  32. <layout>p2</layout>
  33. <url>http://download.eclipse.org/releases/neon</url>
  34. </repository>
  35. <repository>
  36. <id>Xtext Update Site</id>
  37. <layout>p2</layout>
  38. <!--url>http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/</url-->
  39. <url>http://download.eclipse.org/modeling/tmf/xtext/updates/releases/${xtext.version}/</url>
  40. </repository>
  41. <!--repository>
  42. <id>mvn</id>
  43. <url>http://mvnrepository.com/artifact</url>
  44. </repository-->
  45. </repositories>
  46. <build>
  47. <pluginManagement>
  48. <plugins>
  49. <!-- Configure the compiler for all Overture Projects -->
  50. <plugin>
  51. <groupId>org.apache.maven.plugins</groupId>
  52. <artifactId>maven-compiler-plugin</artifactId>
  53. <version>3.5.1</version>
  54. <configuration>
  55. <source>1.8</source>
  56. <target>1.8</target>
  57. </configuration>
  58. </plugin>
  59. <!-- xtend-maven-plugin is in pluginManagement instead of in plugins
  60. so that it doesn't run before the exec-maven-plugin's *.mwe2 gen; this way
  61. we can list it after. -->
  62. <plugin>
  63. <groupId>org.eclipse.xtend</groupId>
  64. <artifactId>xtend-maven-plugin</artifactId>
  65. <version>${xtext.version}</version>
  66. <executions>
  67. <execution>
  68. <goals>
  69. <goal>compile</goal>
  70. <goal>xtend-install-debug-info</goal>
  71. <goal>testCompile</goal>
  72. <goal>xtend-test-install-debug-info</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. <configuration>
  77. <xtendAsPrimaryDebugSource>true</xtendAsPrimaryDebugSource>
  78. <!--outputDirectory>${project.build.directory}/xtend-gen/main</outputDirectory-->
  79. <testOutputDirectory>${project.build.directory}/xtend-gen/test</testOutputDirectory>
  80. <writeTraceFiles>true</writeTraceFiles>
  81. <outputDirectory>xtend-gen</outputDirectory>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-clean-plugin</artifactId>
  87. <version>2.5</version>
  88. <executions>
  89. <execution>
  90. <id>gen-clean</id>
  91. <goals>
  92. <goal>clean</goal>
  93. </goals>
  94. <configuration>
  95. <filesets>
  96. <fileset>
  97. <directory>${basedir}/xtend-gen</directory>
  98. </fileset>
  99. </filesets>
  100. </configuration>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. </plugins>
  105. </pluginManagement>
  106. <plugins>
  107. <plugin>
  108. <groupId>org.eclipse.tycho</groupId>
  109. <artifactId>tycho-maven-plugin</artifactId>
  110. <version>${tycho-version}</version>
  111. <extensions>true</extensions>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. </project>