pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.cryptomator</groupId>
  6. <artifactId>main</artifactId>
  7. <version>1.6.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>buildkit</artifactId>
  10. <packaging>pom</packaging>
  11. <name>Cryptomator Build Kit</name>
  12. <description>Builds a package that can be built with Ant locally</description>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.cryptomator</groupId>
  16. <artifactId>launcher</artifactId>
  17. </dependency>
  18. </dependencies>
  19. <build>
  20. <plugins>
  21. <!-- copy resources -->
  22. <plugin>
  23. <groupId>org.apache.maven.plugins</groupId>
  24. <artifactId>maven-resources-plugin</artifactId>
  25. <executions>
  26. <execution>
  27. <id>copy-resources</id>
  28. <phase>prepare-package</phase>
  29. <goals>
  30. <goal>copy-resources</goal>
  31. </goals>
  32. <configuration>
  33. <outputDirectory>${project.build.directory}</outputDirectory>
  34. <resources>
  35. <resource>
  36. <directory>${project.basedir}/src/main/resources</directory>
  37. <includes>
  38. <include>version.txt</include>
  39. <include>ffi-version.txt</include>
  40. <include>launcher-mac.sh</include>
  41. <include>launcher-linux.sh</include>
  42. <include>launcher-win.bat</include>
  43. <include>LICENSE.txt</include>
  44. </includes>
  45. <filtering>true</filtering>
  46. </resource>
  47. </resources>
  48. </configuration>
  49. </execution>
  50. </executions>
  51. </plugin>
  52. <!-- copy libraries to target/libs/: -->
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-dependency-plugin</artifactId>
  56. <executions>
  57. <execution>
  58. <id>copy-libs</id>
  59. <phase>prepare-package</phase>
  60. <goals>
  61. <goal>copy-dependencies</goal>
  62. </goals>
  63. <configuration>
  64. <includeScope>runtime</includeScope>
  65. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  66. <excludeClassifiers>linux,mac,win</excludeClassifiers>
  67. </configuration>
  68. </execution>
  69. </executions>
  70. </plugin>
  71. </plugins>
  72. </build>
  73. <profiles>
  74. <profile>
  75. <id>linux</id>
  76. <build>
  77. <plugins>
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-assembly-plugin</artifactId>
  81. <executions>
  82. <execution>
  83. <id>assemble-linux</id>
  84. <phase>package</phase>
  85. <goals>
  86. <goal>single</goal>
  87. </goals>
  88. <configuration>
  89. <descriptors>
  90. <descriptor>assembly-linux.xml</descriptor>
  91. </descriptors>
  92. <appendAssemblyId>false</appendAssemblyId>
  93. <finalName>buildkit-linux</finalName>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-dependency-plugin</artifactId>
  101. <executions>
  102. <execution>
  103. <id>copy-linux-libs</id>
  104. <phase>prepare-package</phase>
  105. <goals>
  106. <goal>copy-dependencies</goal>
  107. </goals>
  108. <configuration>
  109. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  110. <includeGroupIds>org.openjfx</includeGroupIds>
  111. <classifier>linux</classifier>
  112. </configuration>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </profile>
  119. <profile>
  120. <id>mac</id>
  121. <build>
  122. <plugins>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-assembly-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <id>assemble-mac</id>
  129. <phase>package</phase>
  130. <goals>
  131. <goal>single</goal>
  132. </goals>
  133. <configuration>
  134. <descriptors>
  135. <descriptor>assembly-mac.xml</descriptor>
  136. </descriptors>
  137. <appendAssemblyId>false</appendAssemblyId>
  138. <finalName>buildkit-mac</finalName>
  139. </configuration>
  140. </execution>
  141. </executions>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-dependency-plugin</artifactId>
  146. <executions>
  147. <execution>
  148. <id>copy-mac-libs</id>
  149. <phase>prepare-package</phase>
  150. <goals>
  151. <goal>copy-dependencies</goal>
  152. </goals>
  153. <configuration>
  154. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  155. <includeGroupIds>org.openjfx</includeGroupIds>
  156. <classifier>mac</classifier>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. </profile>
  164. <profile>
  165. <id>windows</id>
  166. <build>
  167. <plugins>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-assembly-plugin</artifactId>
  171. <executions>
  172. <execution>
  173. <id>assemble-win</id>
  174. <phase>package</phase>
  175. <goals>
  176. <goal>single</goal>
  177. </goals>
  178. <configuration>
  179. <descriptors>
  180. <descriptor>assembly-win.xml</descriptor>
  181. </descriptors>
  182. <appendAssemblyId>false</appendAssemblyId>
  183. <finalName>buildkit-win</finalName>
  184. </configuration>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-dependency-plugin</artifactId>
  191. <executions>
  192. <execution>
  193. <id>copy-win-libs</id>
  194. <phase>prepare-package</phase>
  195. <goals>
  196. <goal>copy-dependencies</goal>
  197. </goals>
  198. <configuration>
  199. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  200. <includeGroupIds>org.openjfx</includeGroupIds>
  201. <classifier>win</classifier>
  202. </configuration>
  203. </execution>
  204. </executions>
  205. </plugin>
  206. </plugins>
  207. </build>
  208. </profile>
  209. </profiles>
  210. </project>