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.

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