pom.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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" 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.5.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>ant-kit</artifactId>
  10. <packaging>pom</packaging>
  11. <name>Cryptomator Ant 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 libraries to target/libs/: -->
  22. <plugin>
  23. <artifactId>maven-dependency-plugin</artifactId>
  24. <executions>
  25. <execution>
  26. <id>copy-libs</id>
  27. <phase>prepare-package</phase>
  28. <goals>
  29. <goal>copy-dependencies</goal>
  30. </goals>
  31. <configuration>
  32. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  33. </configuration>
  34. </execution>
  35. </executions>
  36. </plugin>
  37. <!-- copy resources to target/: -->
  38. <plugin>
  39. <artifactId>maven-resources-plugin</artifactId>
  40. <version>3.0.2</version>
  41. <executions>
  42. <execution>
  43. <id>copy-resources</id>
  44. <phase>prepare-package</phase>
  45. <goals>
  46. <goal>copy-resources</goal>
  47. </goals>
  48. <configuration>
  49. <outputDirectory>${project.build.directory}</outputDirectory>
  50. <escapeString>\</escapeString>
  51. <encoding>UTF-8</encoding>
  52. <resources>
  53. <resource>
  54. <directory>src/main/resources</directory>
  55. <filtering>true</filtering>
  56. <includes>
  57. <include>build.xml</include>
  58. </includes>
  59. </resource>
  60. <resource>
  61. <directory>src/main/resources</directory>
  62. <filtering>false</filtering>
  63. <includes>
  64. <include>logback.xml</include>
  65. </includes>
  66. </resource>
  67. </resources>
  68. </configuration>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <!-- create antkit.zip: -->
  73. <plugin>
  74. <artifactId>maven-assembly-plugin</artifactId>
  75. <version>3.1.0</version>
  76. <executions>
  77. <execution>
  78. <id>make-assembly</id>
  79. <phase>package</phase>
  80. <goals>
  81. <goal>single</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. <configuration>
  86. <descriptors>
  87. <descriptor>assembly.xml</descriptor>
  88. </descriptors>
  89. <appendAssemblyId>false</appendAssemblyId>
  90. <finalName>antkit</finalName>
  91. </configuration>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. </project>