pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright (c) 2014 Sebastian Stenzel This file is licensed under the terms of the MIT license. See the LICENSE.txt file for more info. Contributors: Sebastian Stenzel - initial API and implementation -->
  3. <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">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>de.sebastianstenzel.oce</groupId>
  7. <artifactId>oce-main</artifactId>
  8. <version>0.1.0-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>oce-ui</artifactId>
  11. <name>Open Cloud Encryptor GUI</name>
  12. <properties>
  13. <exec.mainClass>de.sebastianstenzel.oce.ui.MainApplication</exec.mainClass>
  14. <javafx.tools.ant.jar>${java.home}/../lib/ant-javafx.jar</javafx.tools.ant.jar>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>de.sebastianstenzel.oce</groupId>
  19. <artifactId>oce-core</artifactId>
  20. <version>${project.parent.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>de.sebastianstenzel.oce</groupId>
  24. <artifactId>oce-crypto-aes</artifactId>
  25. <version>${project.parent.version}</version>
  26. </dependency>
  27. <!-- JSON -->
  28. <dependency>
  29. <groupId>com.fasterxml.jackson.core</groupId>
  30. <artifactId>jackson-databind</artifactId>
  31. </dependency>
  32. <!-- apache commons -->
  33. <dependency>
  34. <groupId>commons-io</groupId>
  35. <artifactId>commons-io</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.commons</groupId>
  39. <artifactId>commons-lang3</artifactId>
  40. </dependency>
  41. </dependencies>
  42. <build>
  43. <pluginManagement>
  44. <plugins>
  45. <plugin>
  46. <groupId>org.apache.maven.plugins</groupId>
  47. <artifactId>maven-compiler-plugin</artifactId>
  48. <version>3.1</version>
  49. <configuration>
  50. <source>1.8</source>
  51. <target>1.8</target>
  52. </configuration>
  53. </plugin>
  54. </plugins>
  55. </pluginManagement>
  56. <plugins>
  57. <plugin>
  58. <groupId>org.apache.maven.plugins</groupId>
  59. <artifactId>maven-dependency-plugin</artifactId>
  60. <executions>
  61. <execution>
  62. <id>copy</id>
  63. <phase>prepare-package</phase>
  64. <goals>
  65. <goal>copy-dependencies</goal>
  66. </goals>
  67. <configuration>
  68. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  69. <includeScope>compile</includeScope>
  70. <includeScope>runtime</includeScope>
  71. </configuration>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. <plugin>
  76. <artifactId>maven-antrun-plugin</artifactId>
  77. <version>1.7</version>
  78. <executions>
  79. <execution>
  80. <id>native-launcher</id>
  81. <phase>package</phase>
  82. <goals>
  83. <goal>run</goal>
  84. </goals>
  85. <configuration>
  86. <target xmlns:fx="javafx:com.sun.javafx.tools.ant">
  87. <taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml" classpath="${javafx.tools.ant.jar}" />
  88. <fx:application id="fxApp" version="${project.version}" name="${project.name}" mainClass="${exec.mainClass}" />
  89. <fx:jar destfile="${project.build.directory}/${project.build.finalName}">
  90. <fx:application refid="fxApp" />
  91. <fx:fileset dir="${project.build.directory}/classes" />
  92. <fx:resources>
  93. <fx:fileset dir="${project.build.directory}" includes="libs/*.jar" />
  94. </fx:resources>
  95. </fx:jar>
  96. <fx:deploy outdir="${project.build.directory}/dist" outfile="${project.build.finalName}" nativeBundles="all">
  97. <fx:info title="Cloud Encryptor" vendor="cloudencryptor.org">
  98. <!-- todo provide .ico and .icns files for osx/win -->
  99. <fx:icon href="shortcut.ico" width="32" height="32" depth="8" />
  100. </fx:info>
  101. <fx:platform basedir="" javafx="2.2+" j2se="8.0" />
  102. <fx:application refid="fxApp" />
  103. <fx:resources>
  104. <!-- If you changed <fx:jar> above, don't forget to modify the line below -->
  105. <fx:fileset dir="${project.build.directory}" includes="${project.build.finalName}.jar" />
  106. <fx:fileset dir="${project.build.directory}" includes="libs/*.jar" />
  107. </fx:resources>
  108. <fx:preferences install="false" />
  109. </fx:deploy>
  110. </target>
  111. </configuration>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. </project>