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.

287 lines
9.3 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. <testResources>
  99. <testResource>
  100. <directory>src/test/resources</directory>
  101. <filtering>true</filtering>
  102. <includes>
  103. <include>**/*.properties</include>
  104. <include>**/*.info</include>
  105. </includes>
  106. </testResource>
  107. <testResource>
  108. <directory>src/test/resources</directory>
  109. <filtering>false</filtering>
  110. <excludes>
  111. <exclude>**/*.properties</exclude>
  112. <exclude>**/*.info</exclude>
  113. </excludes>
  114. </testResource>
  115. </testResources>
  116. <pluginManagement>
  117. <plugins>
  118. <plugin>
  119. <groupId>com.zenjava</groupId>
  120. <artifactId>javafx-maven-plugin</artifactId>
  121. <version>2.0</version>
  122. <configuration>
  123. <mainClass>com.sothr.imagetools.App</mainClass>
  124. </configuration>
  125. </plugin>
  126. <plugin>
  127. <groupId>net.alchim31.maven</groupId>
  128. <artifactId>scala-maven-plugin</artifactId>
  129. <version>3.1.6</version>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-resources-plugin</artifactId>
  134. <version>2.6</version>
  135. </plugin>
  136. </plugins>
  137. </pluginManagement>
  138. <plugins>
  139. <!-- enable surefire for java tests-->
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-surefire-plugin</artifactId>
  143. <version>2.7</version>
  144. <configuration>
  145. <skipTests>false</skipTests>
  146. </configuration>
  147. </plugin>
  148. <!-- enable scalatest for scala tests-->
  149. <plugin>
  150. <groupId>org.scalatest</groupId>
  151. <artifactId>scalatest-maven-plugin</artifactId>
  152. <version>1.0-RC2</version>
  153. <configuration>
  154. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  155. <junitxml>.</junitxml>
  156. <filereports>WDF TestSuite.txt</filereports>
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <id>test</id>
  161. <goals>
  162. <goal>test</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. <plugin>
  168. <groupId>com.code54.mojo</groupId>
  169. <artifactId>buildversion-plugin</artifactId>
  170. <version>1.0.3</version>
  171. <executions>
  172. <execution>
  173. <goals>
  174. <goal>set-properties</goal>
  175. </goals>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-compiler-plugin</artifactId>
  182. <version>3.1</version>
  183. <configuration>
  184. <source>${jdk.version}</source>
  185. <target>${jdk.version}</target>
  186. </configuration>
  187. <executions>
  188. <execution>
  189. <phase>compile</phase>
  190. <goals>
  191. <goal>compile</goal>
  192. </goals>
  193. </execution>
  194. </executions>
  195. </plugin>
  196. <plugin>
  197. <groupId>net.alchim31.maven</groupId>
  198. <artifactId>scala-maven-plugin</artifactId>
  199. <executions>
  200. <execution>
  201. <id>scala-compile-first</id>
  202. <phase>process-resources</phase>
  203. <goals>
  204. <goal>add-source</goal>
  205. <goal>compile</goal>
  206. </goals>
  207. </execution>
  208. <execution>
  209. <id>scala-test-compile</id>
  210. <phase>process-test-resources</phase>
  211. <goals>
  212. <goal>testCompile</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <plugin>
  218. <artifactId>maven-resources-plugin</artifactId>
  219. <version>2.6</version>
  220. <executions>
  221. <execution>
  222. <id>copy-resources</id>
  223. <phase>initialize</phase>
  224. <goals>
  225. <goal>copy-resources</goal>
  226. </goals>
  227. <configuration>
  228. <outputDirectory>${project.build.directory}</outputDirectory>
  229. <resources>
  230. <resource>
  231. <directory>src/includes</directory>
  232. <filtering>true</filtering>
  233. </resource>
  234. </resources>
  235. </configuration>
  236. </execution>
  237. <execution>
  238. <id>copy-resources-package</id>
  239. <phase>package</phase>
  240. <goals>
  241. <goal>copy-resources</goal>
  242. </goals>
  243. <configuration>
  244. <outputDirectory>${project.build.directory}/jfx/app</outputDirectory>
  245. <resources>
  246. <resource>
  247. <directory>src/includes</directory>
  248. <filtering>true</filtering>
  249. <excludes>
  250. <exclude>version.info</exclude>
  251. <exclude>name.info</exclude>
  252. </excludes>
  253. </resource>
  254. </resources>
  255. </configuration>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. <plugin>
  260. <artifactId>maven-antrun-plugin</artifactId>
  261. <version>1.4</version>
  262. <executions>
  263. <execution>
  264. <phase>process-resources</phase>
  265. <configuration>
  266. <tasks>
  267. <copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" overwrite="true" />
  268. <copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" overwrite="true" />
  269. <copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" overwrite="true" />
  270. <copy file="${project.build.directory}/README.md" toFile="${basedir}/README.md" overwrite="true" />
  271. </tasks>
  272. </configuration>
  273. <goals>
  274. <goal>run</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. </plugin>
  279. </plugins>
  280. </build>
  281. </project>