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.

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