pom.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.0.3d</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. </resource>
  61. </resources>
  62. </configuration>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. <!-- create antkit.tar.gz: -->
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-assembly-plugin</artifactId>
  70. <executions>
  71. <execution>
  72. <id>make-assembly</id>
  73. <phase>package</phase>
  74. <goals>
  75. <goal>single</goal>
  76. </goals>
  77. </execution>
  78. </executions>
  79. <configuration>
  80. <descriptors>
  81. <descriptor>assembly.xml</descriptor>
  82. </descriptors>
  83. <appendAssemblyId>false</appendAssemblyId>
  84. <finalName>antkit</finalName>
  85. </configuration>
  86. </plugin>
  87. </plugins>
  88. </build>
  89. </project>