pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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.1.0</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. </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. </dependencies>
  47. <build>
  48. <pluginManagement>
  49. <plugins>
  50. <plugin>
  51. <groupId>org.apache.maven.plugins</groupId>
  52. <artifactId>maven-compiler-plugin</artifactId>
  53. <version>3.1</version>
  54. <configuration>
  55. <source>1.8</source>
  56. <target>1.8</target>
  57. </configuration>
  58. </plugin>
  59. </plugins>
  60. </pluginManagement>
  61. <plugins>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-dependency-plugin</artifactId>
  65. <executions>
  66. <execution>
  67. <id>copy</id>
  68. <phase>prepare-package</phase>
  69. <goals>
  70. <goal>copy-dependencies</goal>
  71. </goals>
  72. <configuration>
  73. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  74. <includeScope>compile</includeScope>
  75. <includeScope>runtime</includeScope>
  76. </configuration>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. <plugin>
  81. <artifactId>maven-antrun-plugin</artifactId>
  82. <version>1.7</version>
  83. <executions>
  84. <execution>
  85. <id>native-launcher</id>
  86. <phase>package</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="${javafx.tools.ant.jar}" />
  93. <fx:application id="fxApp" version="${project.version}" name="${javafx.application.name}" mainClass="${exec.mainClass}" />
  94. <fx:jar destfile="${project.build.directory}/${project.build.finalName}">
  95. <fx:application refid="fxApp" />
  96. <fx:fileset dir="${project.build.directory}/classes" />
  97. <fx:resources>
  98. <fx:fileset dir="${project.build.directory}" includes="libs/*.jar" />
  99. </fx:resources>
  100. </fx:jar>
  101. <fx:deploy outdir="${project.build.directory}/dist" outfile="${project.build.finalName}" nativeBundles="all">
  102. <fx:info title="Cryptomator" vendor="cryptomator.org" copyright="cryptomator.org" license="MIT">
  103. <!-- todo provide .ico files for win -->
  104. <fx:icon href="${project.build.outputDirectory}/logo.icns" width="512" height="512" />
  105. </fx:info>
  106. <fx:platform basedir="" javafx="2.2+" j2se="8.0" />
  107. <fx:application refid="fxApp" />
  108. <fx:resources>
  109. <!-- If you changed <fx:jar> above, don't forget to modify the line below -->
  110. <fx:fileset dir="${project.build.directory}" includes="${project.build.finalName}.jar" />
  111. <fx:fileset dir="${project.build.directory}" includes="libs/*.jar" />
  112. </fx:resources>
  113. <fx:preferences install="false" />
  114. </fx:deploy>
  115. </target>
  116. </configuration>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. </plugins>
  121. </build>
  122. </project>