pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2014 Sebastian Stenzel
  4. This file is licensed under the terms of the MIT license.
  5. See the LICENSE.txt file for more info.
  6. Contributors:
  7. Sebastian Stenzel - initial API and implementation
  8. -->
  9. <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">
  10. <modelVersion>4.0.0</modelVersion>
  11. <parent>
  12. <groupId>org.cryptomator</groupId>
  13. <artifactId>main</artifactId>
  14. <version>0.4.0-SNAPSHOT</version>
  15. </parent>
  16. <artifactId>ui</artifactId>
  17. <name>Cryptomator GUI</name>
  18. <properties>
  19. <javafx.application.name>Cryptomator</javafx.application.name>
  20. <exec.mainClass>org.cryptomator.ui.MainApplication</exec.mainClass>
  21. <javafx.tools.ant.jar>${java.home}/../lib/ant-javafx.jar</javafx.tools.ant.jar>
  22. <controlsfx.version>8.20.8</controlsfx.version>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.cryptomator</groupId>
  27. <artifactId>core</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.cryptomator</groupId>
  31. <artifactId>crypto-aes</artifactId>
  32. </dependency>
  33. <!-- JSON -->
  34. <dependency>
  35. <groupId>com.fasterxml.jackson.core</groupId>
  36. <artifactId>jackson-databind</artifactId>
  37. </dependency>
  38. <!-- apache commons -->
  39. <dependency>
  40. <groupId>commons-io</groupId>
  41. <artifactId>commons-io</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.commons</groupId>
  45. <artifactId>commons-lang3</artifactId>
  46. </dependency>
  47. <!-- UI -->
  48. <dependency>
  49. <groupId>org.controlsfx</groupId>
  50. <artifactId>controlsfx</artifactId>
  51. <version>${controlsfx.version}</version>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <plugins>
  56. <plugin>
  57. <artifactId>maven-assembly-plugin</artifactId>
  58. <executions>
  59. <execution>
  60. <id>make-assembly</id>
  61. <phase>package</phase>
  62. <goals>
  63. <goal>single</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. <configuration>
  68. <descriptorRefs>
  69. <descriptorRef>jar-with-dependencies</descriptorRef>
  70. </descriptorRefs>
  71. <finalName>${javafx.application.name}</finalName>
  72. <appendAssemblyId>false</appendAssemblyId>
  73. <archive>
  74. <manifestEntries>
  75. <Main-Class>${exec.mainClass}</Main-Class>
  76. </manifestEntries>
  77. </archive>
  78. </configuration>
  79. </plugin>
  80. <plugin>
  81. <artifactId>maven-antrun-plugin</artifactId>
  82. <version>1.7</version>
  83. <executions>
  84. <execution>
  85. <id>create-deployment-bundle</id>
  86. <phase>install</phase>
  87. <goals>
  88. <goal>run</goal>
  89. </goals>
  90. <configuration>
  91. <target xmlns:fx="javafx:com.sun.javafx.tools.ant">
  92. <taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml" classpath="${project.basedir}:${javafx.tools.ant.jar}" />
  93. <fx:deploy nativeBundles="all" outdir="${project.build.directory}/dist" outfile="${project.build.finalName}" verbose="false">
  94. <fx:application name="${javafx.application.name}" version="${project.version}" mainClass="${exec.mainClass}" />
  95. <fx:info title="${javafx.application.name}" vendor="cryptomator.org" copyright="cryptomator.org" license="MIT" category="Utility" />
  96. <fx:platform basedir="" javafx="2.2+" j2se="8.0" />
  97. <fx:resources>
  98. <fx:fileset dir="${project.build.directory}" includes="${javafx.application.name}.jar" />
  99. </fx:resources>
  100. <fx:permissions elevated="false" />
  101. <fx:preferences install="true" />
  102. </fx:deploy>
  103. </target>
  104. </configuration>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. </project>