pom.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2016 Sebastian Stenzel
  4. This file is licensed under the terms of the MIT license.
  5. -->
  6. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  7. <modelVersion>4.0.0</modelVersion>
  8. <parent>
  9. <groupId>org.cryptomator</groupId>
  10. <artifactId>main</artifactId>
  11. <version>1.2.0-SNAPSHOT</version>
  12. </parent>
  13. <artifactId>ant-kit</artifactId>
  14. <packaging>pom</packaging>
  15. <name>Cryptomator Ant Build Kit</name>
  16. <description>Builds a package that can be built with Ant locally</description>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.cryptomator</groupId>
  20. <artifactId>ui</artifactId>
  21. </dependency>
  22. </dependencies>
  23. <build>
  24. <plugins>
  25. <!-- copy libraries to target/libs/: -->
  26. <plugin>
  27. <artifactId>maven-dependency-plugin</artifactId>
  28. <executions>
  29. <execution>
  30. <id>copy-libs</id>
  31. <phase>prepare-package</phase>
  32. <goals>
  33. <goal>copy-dependencies</goal>
  34. </goals>
  35. <configuration>
  36. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  37. </configuration>
  38. </execution>
  39. </executions>
  40. </plugin>
  41. <!-- copy resources to target/: -->
  42. <plugin>
  43. <artifactId>maven-resources-plugin</artifactId>
  44. <version>2.7</version>
  45. <executions>
  46. <execution>
  47. <id>copy-resources</id>
  48. <phase>prepare-package</phase>
  49. <goals>
  50. <goal>copy-resources</goal>
  51. </goals>
  52. <configuration>
  53. <outputDirectory>${project.build.directory}</outputDirectory>
  54. <escapeString>\</escapeString>
  55. <encoding>UTF-8</encoding>
  56. <resources>
  57. <resource>
  58. <directory>src/main/resources</directory>
  59. <filtering>true</filtering>
  60. <excludes>
  61. <exclude>fixed-binaries/**</exclude>
  62. </excludes>
  63. </resource>
  64. <resource>
  65. <directory>src/main/resources</directory>
  66. <filtering>false</filtering>
  67. <includes>
  68. <include>fixed-binaries/**</include>
  69. </includes>
  70. </resource>
  71. </resources>
  72. </configuration>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. <!-- create antkit.tar.gz: -->
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-assembly-plugin</artifactId>
  80. <executions>
  81. <execution>
  82. <id>make-assembly</id>
  83. <phase>package</phase>
  84. <goals>
  85. <goal>single</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. <configuration>
  90. <descriptors>
  91. <descriptor>assembly.xml</descriptor>
  92. </descriptors>
  93. <appendAssemblyId>false</appendAssemblyId>
  94. <finalName>antkit</finalName>
  95. </configuration>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. </project>