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.

269 lines
8.7 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-DEV</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. <pluginRepositories>
  15. <pluginRepository>
  16. <id>sonatype-releases</id>
  17. <url>http://oss.sonatype.org/content/repositories/releases</url>
  18. </pluginRepository>
  19. <pluginRepository>
  20. <id>clojars.org</id>
  21. <url>http://clojars.org/repo</url>
  22. </pluginRepository>
  23. </pluginRepositories>
  24. <properties>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <jdk.version>1.7</jdk.version>
  27. <lib.junit.version>3.8.1</lib.junit.version>
  28. <lib.scalatest.version>2.0</lib.scalatest.version>
  29. <lib.log4j.version>1.2.17</lib.log4j.version>
  30. <lib.slf4j.version>1.7.5</lib.slf4j.version>
  31. <lib.grizzled-slf4j.version>1.0.1</lib.grizzled-slf4j.version>
  32. <lib.scala-library.version>2.10.0</lib.scala-library.version>
  33. <lib.scalafx.version>8.0.0-M1</lib.scalafx.version>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>junit</groupId>
  38. <artifactId>junit</artifactId>
  39. <version>${lib.junit.version}</version>
  40. <scope>test</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.scalatest</groupId>
  44. <artifactId>scalatest_2.10</artifactId>
  45. <version>${lib.scalatest.version}</version>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>log4j</groupId>
  50. <artifactId>log4j</artifactId>
  51. <version>${lib.log4j.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.slf4j</groupId>
  55. <artifactId>slf4j-api</artifactId>
  56. <version>${lib.slf4j.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.slf4j</groupId>
  60. <artifactId>slf4j-log4j12</artifactId>
  61. <version>${lib.slf4j.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.clapper</groupId>
  65. <artifactId>grizzled-slf4j_2.10</artifactId>
  66. <version>${lib.grizzled-slf4j.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.scala-lang</groupId>
  70. <artifactId>scala-library</artifactId>
  71. <version>${lib.scala-library.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>net.coobird</groupId>
  75. <artifactId>thumbnailator</artifactId>
  76. <version>[0.4, 0.5)</version>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <resources>
  81. <resource>
  82. <directory>src/main/resources</directory>
  83. <filtering>true</filtering>
  84. <includes>
  85. <include>**/*.properties</include>
  86. <include>**/*.info</include>
  87. </includes>
  88. </resource>
  89. <resource>
  90. <directory>src/main/resources</directory>
  91. <filtering>false</filtering>
  92. <excludes>
  93. <exclude>**/*.properties</exclude>
  94. <exclude>**/*.info</exclude>
  95. </excludes>
  96. </resource>
  97. </resources>
  98. <pluginManagement>
  99. <plugins>
  100. <plugin>
  101. <groupId>com.zenjava</groupId>
  102. <artifactId>javafx-maven-plugin</artifactId>
  103. <version>2.0</version>
  104. <configuration>
  105. <mainClass>com.sothr.imagetools.App</mainClass>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>net.alchim31.maven</groupId>
  110. <artifactId>scala-maven-plugin</artifactId>
  111. <version>3.1.6</version>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-resources-plugin</artifactId>
  116. <version>2.6</version>
  117. </plugin>
  118. </plugins>
  119. </pluginManagement>
  120. <plugins>
  121. <!-- enable surefire for java tests-->
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-surefire-plugin</artifactId>
  125. <version>2.7</version>
  126. <configuration>
  127. <skipTests>false</skipTests>
  128. </configuration>
  129. </plugin>
  130. <!-- enable scalatest for scala tests-->
  131. <plugin>
  132. <groupId>org.scalatest</groupId>
  133. <artifactId>scalatest-maven-plugin</artifactId>
  134. <version>1.0-RC2</version>
  135. <configuration>
  136. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  137. <junitxml>.</junitxml>
  138. <filereports>WDF TestSuite.txt</filereports>
  139. </configuration>
  140. <executions>
  141. <execution>
  142. <id>test</id>
  143. <goals>
  144. <goal>test</goal>
  145. </goals>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>com.code54.mojo</groupId>
  151. <artifactId>buildversion-plugin</artifactId>
  152. <version>1.0.3</version>
  153. <executions>
  154. <execution>
  155. <goals>
  156. <goal>set-properties</goal>
  157. </goals>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-compiler-plugin</artifactId>
  164. <version>3.1</version>
  165. <configuration>
  166. <source>${jdk.version}</source>
  167. <target>${jdk.version}</target>
  168. </configuration>
  169. <executions>
  170. <execution>
  171. <phase>compile</phase>
  172. <goals>
  173. <goal>compile</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <plugin>
  179. <groupId>net.alchim31.maven</groupId>
  180. <artifactId>scala-maven-plugin</artifactId>
  181. <executions>
  182. <execution>
  183. <id>scala-compile-first</id>
  184. <phase>process-resources</phase>
  185. <goals>
  186. <goal>add-source</goal>
  187. <goal>compile</goal>
  188. </goals>
  189. </execution>
  190. <execution>
  191. <id>scala-test-compile</id>
  192. <phase>process-test-resources</phase>
  193. <goals>
  194. <goal>testCompile</goal>
  195. </goals>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. <plugin>
  200. <artifactId>maven-resources-plugin</artifactId>
  201. <version>2.6</version>
  202. <executions>
  203. <execution>
  204. <id>copy-resources</id>
  205. <phase>initialize</phase>
  206. <goals>
  207. <goal>copy-resources</goal>
  208. </goals>
  209. <configuration>
  210. <outputDirectory>${project.build.directory}</outputDirectory>
  211. <resources>
  212. <resource>
  213. <directory>src/includes</directory>
  214. <filtering>true</filtering>
  215. </resource>
  216. </resources>
  217. </configuration>
  218. </execution>
  219. <execution>
  220. <id>copy-resources-package</id>
  221. <phase>package</phase>
  222. <goals>
  223. <goal>copy-resources</goal>
  224. </goals>
  225. <configuration>
  226. <outputDirectory>${project.build.directory}/jfx/app</outputDirectory>
  227. <resources>
  228. <resource>
  229. <directory>src/includes</directory>
  230. <filtering>true</filtering>
  231. <excludes>
  232. <exclude>version.info</exclude>
  233. <exclude>name.info</exclude>
  234. </excludes>
  235. </resource>
  236. </resources>
  237. </configuration>
  238. </execution>
  239. </executions>
  240. </plugin>
  241. <plugin>
  242. <artifactId>maven-antrun-plugin</artifactId>
  243. <version>1.4</version>
  244. <executions>
  245. <execution>
  246. <phase>process-resources</phase>
  247. <configuration>
  248. <tasks>
  249. <copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" overwrite="true" />
  250. <copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" overwrite="true" />
  251. <copy file="${basedir}/LICENSE" toFile="${basedir}/src/includes/LICENSE" overwrite="true" />
  252. <copy file="${basedir}/README.md" toFile="${basedir}/src/includes/README.md" overwrite="true" />
  253. </tasks>
  254. </configuration>
  255. <goals>
  256. <goal>run</goal>
  257. </goals>
  258. </execution>
  259. </executions>
  260. </plugin>
  261. </plugins>
  262. </build>
  263. </project>