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.

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