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.

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