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.

379 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. <dependency>
  149. <groupId>org.hibernate</groupId>
  150. <artifactId>hibernate-c3p0</artifactId>
  151. <version>${lib.hibernate.version}</version>
  152. </dependency>
  153. </dependencies>
  154. <build>
  155. <resources>
  156. <resource>
  157. <directory>src/main/resources</directory>
  158. <filtering>true</filtering>
  159. <includes>
  160. <include>**/*.conf</include>
  161. <include>**/*.properties</include>
  162. <include>**/*.info</include>
  163. </includes>
  164. </resource>
  165. <resource>
  166. <directory>src/main/resources</directory>
  167. <filtering>false</filtering>
  168. <excludes>
  169. <exclude>**/*.conf</exclude>
  170. <exclude>**/*.properties</exclude>
  171. <exclude>**/*.info</exclude>
  172. </excludes>
  173. </resource>
  174. </resources>
  175. <testResources>
  176. <testResource>
  177. <directory>src/test/resources</directory>
  178. <filtering>true</filtering>
  179. <includes>
  180. <include>**/*.conf</include>
  181. <include>**/*.properties</include>
  182. <include>**/*.info</include>
  183. </includes>
  184. </testResource>
  185. <testResource>
  186. <directory>src/test/resources</directory>
  187. <filtering>false</filtering>
  188. <excludes>
  189. <exclude>**/*.conf</exclude>
  190. <exclude>**/*.properties</exclude>
  191. <exclude>**/*.info</exclude>
  192. </excludes>
  193. </testResource>
  194. </testResources>
  195. <pluginManagement>
  196. <plugins>
  197. <plugin>
  198. <groupId>com.zenjava</groupId>
  199. <artifactId>javafx-maven-plugin</artifactId>
  200. <version>2.0</version>
  201. <configuration>
  202. <mainClass>com.sothr.imagetools.App</mainClass>
  203. </configuration>
  204. </plugin>
  205. <plugin>
  206. <groupId>net.alchim31.maven</groupId>
  207. <artifactId>scala-maven-plugin</artifactId>
  208. <version>3.1.6</version>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-resources-plugin</artifactId>
  213. <version>2.6</version>
  214. </plugin>
  215. </plugins>
  216. </pluginManagement>
  217. <plugins>
  218. <!-- enable surefire for java tests-->
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-surefire-plugin</artifactId>
  222. <version>2.7</version>
  223. <configuration>
  224. <skipTests>false</skipTests>
  225. </configuration>
  226. </plugin>
  227. <!-- enable scalatest for scala tests-->
  228. <plugin>
  229. <groupId>org.scalatest</groupId>
  230. <artifactId>scalatest-maven-plugin</artifactId>
  231. <version>1.0-RC2</version>
  232. <configuration>
  233. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  234. <junitxml>.</junitxml>
  235. <filereports>WDF TestSuite.txt</filereports>
  236. <argLine>-Xmx128m</argLine>
  237. </configuration>
  238. <executions>
  239. <execution>
  240. <id>test</id>
  241. <goals>
  242. <goal>test</goal>
  243. </goals>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. <plugin>
  248. <groupId>com.code54.mojo</groupId>
  249. <artifactId>buildversion-plugin</artifactId>
  250. <version>1.0.3</version>
  251. <executions>
  252. <execution>
  253. <goals>
  254. <goal>set-properties</goal>
  255. </goals>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-compiler-plugin</artifactId>
  262. <version>3.1</version>
  263. <configuration>
  264. <source>${jdk.version}</source>
  265. <target>${jdk.version}</target>
  266. </configuration>
  267. <executions>
  268. <execution>
  269. <phase>compile</phase>
  270. <goals>
  271. <goal>compile</goal>
  272. </goals>
  273. </execution>
  274. </executions>
  275. </plugin>
  276. <plugin>
  277. <groupId>net.alchim31.maven</groupId>
  278. <artifactId>scala-maven-plugin</artifactId>
  279. <executions>
  280. <execution>
  281. <id>scala-compile-first</id>
  282. <phase>process-resources</phase>
  283. <goals>
  284. <goal>add-source</goal>
  285. <goal>compile</goal>
  286. </goals>
  287. </execution>
  288. <execution>
  289. <id>scala-test-compile</id>
  290. <phase>process-test-resources</phase>
  291. <goals>
  292. <goal>testCompile</goal>
  293. </goals>
  294. </execution>
  295. </executions>
  296. <!--<configuration>
  297. <jvmArgs>
  298. <jvmArg>-Xms64m</jvmArg>
  299. <jvmArg>-Xmx1024m</jvmArg>
  300. </jvmArgs>
  301. </configuration>-->
  302. </plugin>
  303. <plugin>
  304. <artifactId>maven-resources-plugin</artifactId>
  305. <version>2.6</version>
  306. <executions>
  307. <execution>
  308. <id>copy-resources</id>
  309. <phase>initialize</phase>
  310. <goals>
  311. <goal>copy-resources</goal>
  312. </goals>
  313. <configuration>
  314. <outputDirectory>${project.build.directory}</outputDirectory>
  315. <resources>
  316. <resource>
  317. <directory>src/includes</directory>
  318. <filtering>true</filtering>
  319. </resource>
  320. </resources>
  321. </configuration>
  322. </execution>
  323. <execution>
  324. <id>copy-resources-package</id>
  325. <phase>package</phase>
  326. <goals>
  327. <goal>copy-resources</goal>
  328. </goals>
  329. <configuration>
  330. <outputDirectory>${project.build.directory}/jfx/app</outputDirectory>
  331. <resources>
  332. <resource>
  333. <directory>src/includes</directory>
  334. <filtering>true</filtering>
  335. <excludes>
  336. <exclude>version.info</exclude>
  337. <exclude>name.info</exclude>
  338. </excludes>
  339. </resource>
  340. </resources>
  341. </configuration>
  342. </execution>
  343. </executions>
  344. </plugin>
  345. <plugin>
  346. <artifactId>maven-antrun-plugin</artifactId>
  347. <version>1.4</version>
  348. <executions>
  349. <execution>
  350. <phase>process-resources</phase>
  351. <configuration>
  352. <tasks>
  353. <!-- Copy hibernate configuration files -->
  354. <copy todir="${basedir}/src/test/resources/hibernate">
  355. <fileset dir="${basedir}/src/main/resources/hibernate" includes="**/*" />
  356. </copy>
  357. <copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" overwrite="true" />
  358. <copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" overwrite="true" />
  359. <copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" overwrite="true" />
  360. <copy file="${project.build.directory}/README.md" toFile="${basedir}/README.md" overwrite="true" />
  361. <chmod file="${project.build.directory}/startCLI.sh" perm="755"/>
  362. <chmod file="${project.build.directory}/startGUI.sh" perm="755"/>
  363. </tasks>
  364. </configuration>
  365. <goals>
  366. <goal>run</goal>
  367. </goals>
  368. </execution>
  369. </executions>
  370. </plugin>
  371. </plugins>
  372. </build>
  373. </project>