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.

349 lines
12 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.logback.version>1.0.13</lib.logback.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.3</lib.scala-library.version>
  36. <lib.scalafx.version>8.0.0-M3</lib.scalafx.version>
  37. <lib.akka.version>2.2.3</lib.akka.version>
  38. <lib.jta.version>1.1</lib.jta.version>
  39. <lib.ehcache.version>2.8.0</lib.ehcache.version>
  40. <lib.commons-cli.version>1.2</lib.commons-cli.version>
  41. <lib.commons-codec.version>1.9</lib.commons-codec.version>
  42. <lib.jtransforms.version>2.4.0</lib.jtransforms.version>
  43. </properties>
  44. <dependencies>
  45. <dependency>
  46. <groupId>junit</groupId>
  47. <artifactId>junit</artifactId>
  48. <version>${lib.junit.version}</version>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.scalatest</groupId>
  53. <artifactId>scalatest_2.10</artifactId>
  54. <version>${lib.scalatest.version}</version>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>ch.qos.logback</groupId>
  59. <artifactId>logback-core</artifactId>
  60. <version>${lib.logback.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>ch.qos.logback</groupId>
  64. <artifactId>logback-classic</artifactId>
  65. <version>${lib.logback.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>ch.qos.logback</groupId>
  69. <artifactId>logback-access</artifactId>
  70. <version>${lib.logback.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.slf4j</groupId>
  74. <artifactId>slf4j-api</artifactId>
  75. <version>${lib.slf4j.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.clapper</groupId>
  79. <artifactId>grizzled-slf4j_2.10</artifactId>
  80. <version>${lib.grizzled-slf4j.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.scala-lang</groupId>
  84. <artifactId>scala-library</artifactId>
  85. <version>${lib.scala-library.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>net.coobird</groupId>
  89. <artifactId>thumbnailator</artifactId>
  90. <version>[0.4, 0.5)</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>net.sourceforge.jtransforms</groupId>
  94. <artifactId>jtransforms</artifactId>
  95. <version>${lib.jtransforms.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>commons-cli</groupId>
  99. <artifactId>commons-cli</artifactId>
  100. <version>${lib.commons-cli.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>commons-codec</groupId>
  104. <artifactId>commons-codec</artifactId>
  105. <version>${lib.commons-codec.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>javax.transaction</groupId>
  109. <artifactId>jta</artifactId>
  110. <version>${lib.jta.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>net.sf.ehcache</groupId>
  114. <artifactId>ehcache</artifactId>
  115. <version>${lib.ehcache.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.typesafe.akka</groupId>
  119. <artifactId>akka-actor_2.10</artifactId>
  120. <version>${lib.akka.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.typesafe.akka</groupId>
  124. <artifactId>akka-slf4j_2.10</artifactId>
  125. <version>${lib.akka.version}</version>
  126. </dependency>
  127. </dependencies>
  128. <build>
  129. <resources>
  130. <resource>
  131. <directory>src/main/resources</directory>
  132. <filtering>true</filtering>
  133. <includes>
  134. <include>**/*.conf</include>
  135. <include>**/*.properties</include>
  136. <include>**/*.info</include>
  137. </includes>
  138. </resource>
  139. <resource>
  140. <directory>src/main/resources</directory>
  141. <filtering>false</filtering>
  142. <excludes>
  143. <exclude>**/*.conf</exclude>
  144. <exclude>**/*.properties</exclude>
  145. <exclude>**/*.info</exclude>
  146. </excludes>
  147. </resource>
  148. </resources>
  149. <testResources>
  150. <testResource>
  151. <directory>src/test/resources</directory>
  152. <filtering>true</filtering>
  153. <includes>
  154. <include>**/*.conf</include>
  155. <include>**/*.properties</include>
  156. <include>**/*.info</include>
  157. </includes>
  158. </testResource>
  159. <testResource>
  160. <directory>src/test/resources</directory>
  161. <filtering>false</filtering>
  162. <excludes>
  163. <exclude>**/*.conf</exclude>
  164. <exclude>**/*.properties</exclude>
  165. <exclude>**/*.info</exclude>
  166. </excludes>
  167. </testResource>
  168. </testResources>
  169. <pluginManagement>
  170. <plugins>
  171. <plugin>
  172. <groupId>com.zenjava</groupId>
  173. <artifactId>javafx-maven-plugin</artifactId>
  174. <version>2.0</version>
  175. <configuration>
  176. <mainClass>com.sothr.imagetools.App</mainClass>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>net.alchim31.maven</groupId>
  181. <artifactId>scala-maven-plugin</artifactId>
  182. <version>3.1.6</version>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-resources-plugin</artifactId>
  187. <version>2.6</version>
  188. </plugin>
  189. </plugins>
  190. </pluginManagement>
  191. <plugins>
  192. <!-- enable surefire for java tests-->
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-surefire-plugin</artifactId>
  196. <version>2.7</version>
  197. <configuration>
  198. <skipTests>false</skipTests>
  199. </configuration>
  200. </plugin>
  201. <!-- enable scalatest for scala tests-->
  202. <plugin>
  203. <groupId>org.scalatest</groupId>
  204. <artifactId>scalatest-maven-plugin</artifactId>
  205. <version>1.0-RC2</version>
  206. <configuration>
  207. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  208. <junitxml>.</junitxml>
  209. <filereports>WDF TestSuite.txt</filereports>
  210. <argLine>-Xmx128m</argLine>
  211. </configuration>
  212. <executions>
  213. <execution>
  214. <id>test</id>
  215. <goals>
  216. <goal>test</goal>
  217. </goals>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. <plugin>
  222. <groupId>com.code54.mojo</groupId>
  223. <artifactId>buildversion-plugin</artifactId>
  224. <version>1.0.3</version>
  225. <executions>
  226. <execution>
  227. <goals>
  228. <goal>set-properties</goal>
  229. </goals>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-compiler-plugin</artifactId>
  236. <version>3.1</version>
  237. <configuration>
  238. <source>${jdk.version}</source>
  239. <target>${jdk.version}</target>
  240. </configuration>
  241. <executions>
  242. <execution>
  243. <phase>compile</phase>
  244. <goals>
  245. <goal>compile</goal>
  246. </goals>
  247. </execution>
  248. </executions>
  249. </plugin>
  250. <plugin>
  251. <groupId>net.alchim31.maven</groupId>
  252. <artifactId>scala-maven-plugin</artifactId>
  253. <executions>
  254. <execution>
  255. <id>scala-compile-first</id>
  256. <phase>process-resources</phase>
  257. <goals>
  258. <goal>add-source</goal>
  259. <goal>compile</goal>
  260. </goals>
  261. </execution>
  262. <execution>
  263. <id>scala-test-compile</id>
  264. <phase>process-test-resources</phase>
  265. <goals>
  266. <goal>testCompile</goal>
  267. </goals>
  268. </execution>
  269. </executions>
  270. <!--<configuration>
  271. <jvmArgs>
  272. <jvmArg>-Xms64m</jvmArg>
  273. <jvmArg>-Xmx1024m</jvmArg>
  274. </jvmArgs>
  275. </configuration>-->
  276. </plugin>
  277. <plugin>
  278. <artifactId>maven-resources-plugin</artifactId>
  279. <version>2.6</version>
  280. <executions>
  281. <execution>
  282. <id>copy-resources</id>
  283. <phase>initialize</phase>
  284. <goals>
  285. <goal>copy-resources</goal>
  286. </goals>
  287. <configuration>
  288. <outputDirectory>${project.build.directory}</outputDirectory>
  289. <resources>
  290. <resource>
  291. <directory>src/includes</directory>
  292. <filtering>true</filtering>
  293. </resource>
  294. </resources>
  295. </configuration>
  296. </execution>
  297. <execution>
  298. <id>copy-resources-package</id>
  299. <phase>package</phase>
  300. <goals>
  301. <goal>copy-resources</goal>
  302. </goals>
  303. <configuration>
  304. <outputDirectory>${project.build.directory}/jfx/app</outputDirectory>
  305. <resources>
  306. <resource>
  307. <directory>src/includes</directory>
  308. <filtering>true</filtering>
  309. <excludes>
  310. <exclude>version.info</exclude>
  311. <exclude>name.info</exclude>
  312. </excludes>
  313. </resource>
  314. </resources>
  315. </configuration>
  316. </execution>
  317. </executions>
  318. </plugin>
  319. <plugin>
  320. <artifactId>maven-antrun-plugin</artifactId>
  321. <version>1.4</version>
  322. <executions>
  323. <execution>
  324. <phase>process-resources</phase>
  325. <configuration>
  326. <tasks>
  327. <copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" overwrite="true" />
  328. <copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" overwrite="true" />
  329. <copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" overwrite="true" />
  330. <copy file="${project.build.directory}/README.md" toFile="${basedir}/README.md" overwrite="true" />
  331. <chmod file="${project.build.directory}/startCLI.sh" perm="755"/>
  332. <chmod file="${project.build.directory}/startGUI.sh" perm="755"/>
  333. </tasks>
  334. </configuration>
  335. <goals>
  336. <goal>run</goal>
  337. </goals>
  338. </execution>
  339. </executions>
  340. </plugin>
  341. </plugins>
  342. </build>
  343. </project>