pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <relativePath>../pom.xml</relativePath>
  6. <groupId>be.uantwerpen.ansymo.semanticadaptation</groupId>
  7. <artifactId>parent</artifactId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. </parent>
  10. <packaging>eclipse-repository</packaging>
  11. <groupId>be.uantwerpen.ansymo.semanticadaptation.ide</groupId>
  12. <artifactId>be.uantwerpen.ansymo.semanticadaptation.product</artifactId>
  13. <name>SA IDE Standalone Product</name>
  14. <build>
  15. <resources>
  16. <resource>
  17. <targetPath>${basedir}</targetPath>
  18. <directory>${basedir}/src/main/resources/p2</directory>
  19. <filtering>true</filtering>
  20. </resource>
  21. <resource>
  22. <targetPath>${basedir}</targetPath>
  23. <directory>${basedir}/src/main/resources/product</directory>
  24. <filtering>false</filtering>
  25. </resource>
  26. </resources>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-resources-plugin</artifactId>
  31. <executions>
  32. <execution>
  33. <id>p2-inf</id>
  34. <goals>
  35. <goal>resources</goal>
  36. </goals>
  37. <phase>generate-resources</phase>
  38. </execution>
  39. </executions>
  40. <configuration>
  41. <overwrite>true</overwrite>
  42. </configuration>
  43. </plugin>
  44. <plugin>
  45. <groupId>org.eclipse.tycho</groupId>
  46. <artifactId>tycho-p2-director-plugin</artifactId>
  47. <executions>
  48. <execution>
  49. <id>materialize-products</id>
  50. <goals>
  51. <goal>materialize-products</goal>
  52. </goals>
  53. </execution>
  54. <execution>
  55. <id>archive-products</id>
  56. <goals>
  57. <goal>archive-products</goal>
  58. </goals>
  59. </execution>
  60. </executions>
  61. <configuration>
  62. <products>
  63. <product>
  64. <id>be.uantwerpen.ansymo.semanticadaptation.platform.product</id>
  65. <archiveFileName>SemanticAdaptation-${project.version}</archiveFileName>
  66. <rootFolder>SemanticAdaptation</rootFolder>
  67. <rootFolders>
  68. <macosx>SemanticAdaptation.app</macosx>
  69. </rootFolders>
  70. </product>
  71. <product>
  72. <id>be.uantwerpen.ansymo.semanticadaptation.platform.product.cli</id>
  73. <archiveFileName>SemanticAdaptationCli-${project.version}</archiveFileName>
  74. <rootFolder>SemanticAdaptationCli</rootFolder>
  75. <rootFolders>
  76. <macosx>SemanticAdaptationCli.app</macosx>
  77. </rootFolders>
  78. <attachId>cli</attachId>
  79. </product>
  80. </products>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <artifactId>maven-antrun-plugin</artifactId>
  85. <executions>
  86. <execution>
  87. <phase>process-resources</phase>
  88. <configuration>
  89. <tasks>
  90. <replace dir="${basedir}/">
  91. <include name="*.product" />
  92. <replacefilter token="VERSION" value="${project.version}" />
  93. </replace>
  94. <replace dir="${basedir}/">
  95. <include name="*.product" />
  96. <replacefilter token="-SNAPSHOT" value=".qualifier" />
  97. </replace>
  98. </tasks>
  99. </configuration>
  100. <goals>
  101. <goal>run</goal>
  102. </goals>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. </plugins>
  107. <pluginManagement>
  108. <plugins>
  109. <!--This plugin's configuration is used to store Eclipse m2e settings
  110. only. It has no influence on the Maven build itself. -->
  111. <plugin>
  112. <groupId>org.eclipse.m2e</groupId>
  113. <artifactId>lifecycle-mapping</artifactId>
  114. <version>1.0.0</version>
  115. <configuration>
  116. <lifecycleMappingMetadata>
  117. <pluginExecutions>
  118. <pluginExecution>
  119. <pluginExecutionFilter>
  120. <groupId>
  121. org.apache.maven.plugins
  122. </groupId>
  123. <artifactId>
  124. maven-antrun-plugin
  125. </artifactId>
  126. <versionRange>[1.3,)</versionRange>
  127. <goals>
  128. <goal>run</goal>
  129. </goals>
  130. </pluginExecutionFilter>
  131. <action>
  132. <ignore></ignore>
  133. </action>
  134. </pluginExecution>
  135. </pluginExecutions>
  136. </lifecycleMappingMetadata>
  137. </configuration>
  138. </plugin>
  139. </plugins>
  140. </pluginManagement>
  141. </build>
  142. <profiles>
  143. <profile>
  144. <id>release</id>
  145. <activation>
  146. <activeByDefault>false</activeByDefault>
  147. </activation>
  148. <build>
  149. <plugins>
  150. <plugin>
  151. <artifactId>maven-antrun-plugin</artifactId>
  152. <executions>
  153. <execution>
  154. <phase>process-resources</phase>
  155. <configuration>
  156. <tasks>
  157. <replace dir="${basedir}/">
  158. <include name="*.product" />
  159. <replacefilter
  160. token="DELETE.FOR.RELEASE.osgi.instance.area.default" value="osgi.instance.area.default" />
  161. <replacefilter token="VERSION" value="${project.version}" />
  162. <replacefilter token="-SNAPSHOT" value=".qualifier" />
  163. </replace>
  164. <replace dir="${basedir}/">
  165. <include name="overture.p2.inf" />
  166. <replacefilter token="name:Overture,enabled:false"
  167. value="name:Overture,enabled:true" />
  168. <replacefilter token="name:Overture Development,enabled:true"
  169. value="name:Overture Development,enabled:false" />
  170. </replace>
  171. </tasks>
  172. </configuration>
  173. <goals>
  174. <goal>run</goal>
  175. </goals>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. </plugins>
  180. </build>
  181. </profile>
  182. </profiles>
  183. </project>