pom.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.1.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. <defaultGoal>clean assembly:assembly</defaultGoal>
  25. <plugins>
  26. <!-- copy libraries to target/libs/: -->
  27. <plugin>
  28. <artifactId>maven-dependency-plugin</artifactId>
  29. <executions>
  30. <execution>
  31. <id>copy-libs</id>
  32. <phase>prepare-package</phase>
  33. <goals>
  34. <goal>copy-dependencies</goal>
  35. </goals>
  36. <configuration>
  37. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  38. </configuration>
  39. </execution>
  40. </executions>
  41. </plugin>
  42. <!-- copy resources to target/: -->
  43. <plugin>
  44. <artifactId>maven-resources-plugin</artifactId>
  45. <version>2.7</version>
  46. <executions>
  47. <execution>
  48. <id>copy-resources</id>
  49. <phase>prepare-package</phase>
  50. <goals>
  51. <goal>copy-resources</goal>
  52. </goals>
  53. <configuration>
  54. <outputDirectory>${project.build.directory}</outputDirectory>
  55. <escapeString>\</escapeString>
  56. <encoding>UTF-8</encoding>
  57. <resources>
  58. <resource>
  59. <directory>src/main/resources</directory>
  60. <filtering>true</filtering>
  61. </resource>
  62. </resources>
  63. </configuration>
  64. </execution>
  65. </executions>
  66. </plugin>
  67. <!-- create cryptomator_1.2.3-4.tar.gz: -->
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-assembly-plugin</artifactId>
  71. <configuration>
  72. <descriptor>assembly.xml</descriptor>
  73. <finalName>cryptomator_${project.version}</finalName>
  74. </configuration>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. </project>