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.

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