pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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.7.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.Cryptomator</exec.mainClass>
  21. <javafx.tools.ant.jar>${java.home}/../lib/ant-javafx.jar</javafx.tools.ant.jar>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.cryptomator</groupId>
  26. <artifactId>core</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.cryptomator</groupId>
  30. <artifactId>crypto-aes</artifactId>
  31. </dependency>
  32. <!-- JSON -->
  33. <dependency>
  34. <groupId>com.fasterxml.jackson.core</groupId>
  35. <artifactId>jackson-databind</artifactId>
  36. </dependency>
  37. <!-- apache commons -->
  38. <dependency>
  39. <groupId>commons-io</groupId>
  40. <artifactId>commons-io</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.commons</groupId>
  44. <artifactId>commons-lang3</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>commons-httpclient</groupId>
  48. <artifactId>commons-httpclient</artifactId>
  49. </dependency>
  50. <!-- DI -->
  51. <dependency>
  52. <groupId>com.google.inject</groupId>
  53. <artifactId>guice</artifactId>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <plugins>
  58. <plugin>
  59. <artifactId>maven-assembly-plugin</artifactId>
  60. <executions>
  61. <execution>
  62. <id>make-assembly</id>
  63. <phase>package</phase>
  64. <goals>
  65. <goal>single</goal>
  66. </goals>
  67. </execution>
  68. </executions>
  69. <configuration>
  70. <descriptorRefs>
  71. <descriptorRef>jar-with-dependencies</descriptorRef>
  72. </descriptorRefs>
  73. <finalName>${javafx.application.name}</finalName>
  74. <appendAssemblyId>false</appendAssemblyId>
  75. <archive>
  76. <manifestEntries>
  77. <Main-Class>${exec.mainClass}</Main-Class>
  78. <Implementation-Version>${project.version}</Implementation-Version>
  79. </manifestEntries>
  80. </archive>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <artifactId>maven-antrun-plugin</artifactId>
  85. <version>1.7</version>
  86. <executions>
  87. <execution>
  88. <id>create-deployment-bundle</id>
  89. <phase>install</phase>
  90. <goals>
  91. <goal>run</goal>
  92. </goals>
  93. <configuration>
  94. <target xmlns:fx="javafx:com.sun.javafx.tools.ant">
  95. <taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml" classpath="${project.basedir}:${javafx.tools.ant.jar}" />
  96. <fx:deploy nativeBundles="all" outdir="${project.build.directory}/dist" outfile="${project.build.finalName}" verbose="false">
  97. <fx:application name="${javafx.application.name}" version="${project.version}" mainClass="${exec.mainClass}" />
  98. <fx:info title="${javafx.application.name}" vendor="cryptomator.org" copyright="cryptomator.org" license="MIT" category="Utility" />
  99. <fx:platform javafx="2.2+" j2se="8.0" />
  100. <fx:resources>
  101. <fx:fileset dir="${project.build.directory}" includes="${javafx.application.name}.jar" />
  102. </fx:resources>
  103. <fx:permissions elevated="false" />
  104. <fx:preferences install="true" />
  105. </fx:deploy>
  106. </target>
  107. </configuration>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. <profiles>
  114. <profile>
  115. <id>portable-win</id>
  116. <activation>
  117. <os>
  118. <family>Windows</family>
  119. </os>
  120. </activation>
  121. <build>
  122. <plugins>
  123. <plugin>
  124. <artifactId>maven-antrun-plugin</artifactId>
  125. <version>1.7</version>
  126. <executions>
  127. <execution>
  128. <id>create-portable-deployment-bundle</id>
  129. <phase>install</phase>
  130. <goals>
  131. <goal>run</goal>
  132. </goals>
  133. <configuration>
  134. <target xmlns:fx="javafx:com.sun.javafx.tools.ant">
  135. <taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml" classpath="${project.basedir}:${javafx.tools.ant.jar}" />
  136. <fx:deploy nativeBundles="exe" outdir="${project.build.directory}/dist" outfile="${project.build.finalName}" verbose="true">
  137. <fx:application name="${javafx.application.name}-Portable" version="${project.version}" mainClass="${exec.mainClass}" />
  138. <fx:info title="${javafx.application.name}" vendor="cryptomator.org" copyright="cryptomator.org" license="MIT" category="Utility" />
  139. <fx:platform javafx="2.2+" j2se="8.0">
  140. <fx:property name="settingsPath" value="./settings.json" />
  141. </fx:platform>
  142. <fx:resources>
  143. <fx:fileset dir="${project.build.directory}" includes="${javafx.application.name}.jar" />
  144. </fx:resources>
  145. <fx:permissions elevated="false" />
  146. <fx:preferences install="false" menu="false" shortcut="false" />
  147. </fx:deploy>
  148. </target>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. </plugins>
  154. </build>
  155. </profile>
  156. </profiles>
  157. </project>