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.

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