You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

193 lines
6.1 KiB

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.sothr.imagetools</groupId>
  5. <artifactId>Image-Tools</artifactId>
  6. <version>0.1.0-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>Image-Tools</name>
  9. <description>An image collection management utility</description>
  10. <url>http://imagetools.sothr.com</url>
  11. <organization>
  12. <name>Sothr Software</name>
  13. </organization>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <jdk.version>1.7</jdk.version>
  17. <lib.junit.version>3.8.1</lib.junit.version>
  18. <lib.log4j.version>1.2.17</lib.log4j.version>
  19. <lib.slf4j.version>1.7.5</lib.slf4j.version>
  20. <lib.scala-library.version>2.10.2</lib.scala-library.version>
  21. <lib.scalafx.version>8.0.0-M1</lib.scalafx.version>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>junit</groupId>
  26. <artifactId>junit</artifactId>
  27. <version>${lib.junit.version}</version>
  28. <scope>test</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>log4j</groupId>
  32. <artifactId>log4j</artifactId>
  33. <version>${lib.log4j.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.slf4j</groupId>
  37. <artifactId>slf4j-api</artifactId>
  38. <version>${lib.slf4j.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.slf4j</groupId>
  42. <artifactId>slf4j-log4j12</artifactId>
  43. <version>${lib.slf4j.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.scala-lang</groupId>
  47. <artifactId>scala-library</artifactId>
  48. <version>${lib.scala-library.version}</version>
  49. </dependency>
  50. </dependencies>
  51. <build>
  52. <resources>
  53. </resources>
  54. <pluginManagement>
  55. <plugins>
  56. <plugin>
  57. <groupId>com.zenjava</groupId>
  58. <artifactId>javafx-maven-plugin</artifactId>
  59. <version>2.0</version>
  60. <configuration>
  61. <mainClass>com.sothr.imagetools.App</mainClass>
  62. </configuration>
  63. </plugin>
  64. <plugin>
  65. <groupId>net.alchim31.maven</groupId>
  66. <artifactId>scala-maven-plugin</artifactId>
  67. <version>3.1.6</version>
  68. </plugin>
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-resources-plugin</artifactId>
  72. <version>2.6</version>
  73. </plugin>
  74. </plugins>
  75. </pluginManagement>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. <version>3.1</version>
  81. <configuration>
  82. <source>${jdk.version}</source>
  83. <target>${jdk.version}</target>
  84. </configuration>
  85. <executions>
  86. <execution>
  87. <phase>compile</phase>
  88. <goals>
  89. <goal>compile</goal>
  90. </goals>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. <plugin>
  95. <groupId>net.alchim31.maven</groupId>
  96. <artifactId>scala-maven-plugin</artifactId>
  97. <executions>
  98. <execution>
  99. <id>scala-compile-first</id>
  100. <phase>process-resources</phase>
  101. <goals>
  102. <goal>add-source</goal>
  103. <goal>compile</goal>
  104. </goals>
  105. </execution>
  106. <execution>
  107. <id>scala-test-compile</id>
  108. <phase>process-test-resources</phase>
  109. <goals>
  110. <goal>testCompile</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-jar-plugin</artifactId>
  118. <version>2.4</version>
  119. <configuration>
  120. <outputDirectory>${project.build.directory}/build/</outputDirectory>
  121. <archive>
  122. <manifest>
  123. <addClasspath>true</addClasspath>
  124. <mainClass>com.sothr.imagetools.App</mainClass>
  125. <classpathPrefix>lib</classpathPrefix>
  126. </manifest>
  127. </archive>
  128. </configuration>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-dependency-plugin</artifactId>
  133. <version>2.5.1</version>
  134. <executions>
  135. <execution>
  136. <id>copy-dependencies</id>
  137. <phase>package</phase>
  138. <goals>
  139. <goal>copy-dependencies</goal>
  140. </goals>
  141. <configuration>
  142. <outputDirectory>${project.build.directory}/build/lib</outputDirectory>
  143. </configuration>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-resources-plugin</artifactId>
  150. <version>2.6</version>
  151. <executions>
  152. <execution>
  153. <id>copy-resources</id>
  154. <phase>validate</phase>
  155. <goals>
  156. <goal>copy-resources</goal>
  157. </goals>
  158. <configuration>
  159. <outputDirectory>${project.build.directory}</outputDirectory>
  160. <resources>
  161. <resource>
  162. <directory>src/includes</directory>
  163. <filtering>true</filtering>
  164. </resource>
  165. </resources>
  166. </configuration>
  167. </execution>
  168. <execution>
  169. <id>copy-resources-package</id>
  170. <phase>package</phase>
  171. <goals>
  172. <goal>copy-resources</goal>
  173. </goals>
  174. <configuration>
  175. <outputDirectory>${project.build.directory}/build</outputDirectory>
  176. <resources>
  177. <resource>
  178. <directory>src/includes</directory>
  179. <filtering>true</filtering>
  180. </resource>
  181. </resources>
  182. </configuration>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. </project>