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.

322 lines
10 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. </dependencies>
  107. <build>
  108. <resources>
  109. <resource>
  110. <directory>src/main/resources</directory>
  111. <filtering>true</filtering>
  112. <includes>
  113. <include>**/*.properties</include>
  114. <include>**/*.info</include>
  115. </includes>
  116. </resource>
  117. <resource>
  118. <directory>src/main/resources</directory>
  119. <filtering>false</filtering>
  120. <excludes>
  121. <exclude>**/*.properties</exclude>
  122. <exclude>**/*.info</exclude>
  123. </excludes>
  124. </resource>
  125. </resources>
  126. <testResources>
  127. <testResource>
  128. <directory>src/test/resources</directory>
  129. <filtering>true</filtering>
  130. <includes>
  131. <include>**/*.properties</include>
  132. <include>**/*.info</include>
  133. </includes>
  134. </testResource>
  135. <testResource>
  136. <directory>src/test/resources</directory>
  137. <filtering>false</filtering>
  138. <excludes>
  139. <exclude>**/*.properties</exclude>
  140. <exclude>**/*.info</exclude>
  141. </excludes>
  142. </testResource>
  143. </testResources>
  144. <pluginManagement>
  145. <plugins>
  146. <plugin>
  147. <groupId>com.zenjava</groupId>
  148. <artifactId>javafx-maven-plugin</artifactId>
  149. <version>2.0</version>
  150. <configuration>
  151. <mainClass>com.sothr.imagetools.App</mainClass>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <groupId>net.alchim31.maven</groupId>
  156. <artifactId>scala-maven-plugin</artifactId>
  157. <version>3.1.6</version>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.maven.plugins</groupId>
  161. <artifactId>maven-resources-plugin</artifactId>
  162. <version>2.6</version>
  163. </plugin>
  164. </plugins>
  165. </pluginManagement>
  166. <plugins>
  167. <!-- enable surefire for java tests-->
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-surefire-plugin</artifactId>
  171. <version>2.7</version>
  172. <configuration>
  173. <skipTests>false</skipTests>
  174. </configuration>
  175. </plugin>
  176. <!-- enable scalatest for scala tests-->
  177. <plugin>
  178. <groupId>org.scalatest</groupId>
  179. <artifactId>scalatest-maven-plugin</artifactId>
  180. <version>1.0-RC2</version>
  181. <configuration>
  182. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  183. <junitxml>.</junitxml>
  184. <filereports>WDF TestSuite.txt</filereports>
  185. <argLine>-Xmx128m</argLine>
  186. </configuration>
  187. <executions>
  188. <execution>
  189. <id>test</id>
  190. <goals>
  191. <goal>test</goal>
  192. </goals>
  193. </execution>
  194. </executions>
  195. </plugin>
  196. <plugin>
  197. <groupId>com.code54.mojo</groupId>
  198. <artifactId>buildversion-plugin</artifactId>
  199. <version>1.0.3</version>
  200. <executions>
  201. <execution>
  202. <goals>
  203. <goal>set-properties</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-compiler-plugin</artifactId>
  211. <version>3.1</version>
  212. <configuration>
  213. <source>${jdk.version}</source>
  214. <target>${jdk.version}</target>
  215. </configuration>
  216. <executions>
  217. <execution>
  218. <phase>compile</phase>
  219. <goals>
  220. <goal>compile</goal>
  221. </goals>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. <plugin>
  226. <groupId>net.alchim31.maven</groupId>
  227. <artifactId>scala-maven-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <id>scala-compile-first</id>
  231. <phase>process-resources</phase>
  232. <goals>
  233. <goal>add-source</goal>
  234. <goal>compile</goal>
  235. </goals>
  236. </execution>
  237. <execution>
  238. <id>scala-test-compile</id>
  239. <phase>process-test-resources</phase>
  240. <goals>
  241. <goal>testCompile</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. <!--<configuration>
  246. <jvmArgs>
  247. <jvmArg>-Xms64m</jvmArg>
  248. <jvmArg>-Xmx1024m</jvmArg>
  249. </jvmArgs>
  250. </configuration>-->
  251. </plugin>
  252. <plugin>
  253. <artifactId>maven-resources-plugin</artifactId>
  254. <version>2.6</version>
  255. <executions>
  256. <execution>
  257. <id>copy-resources</id>
  258. <phase>initialize</phase>
  259. <goals>
  260. <goal>copy-resources</goal>
  261. </goals>
  262. <configuration>
  263. <outputDirectory>${project.build.directory}</outputDirectory>
  264. <resources>
  265. <resource>
  266. <directory>src/includes</directory>
  267. <filtering>true</filtering>
  268. </resource>
  269. </resources>
  270. </configuration>
  271. </execution>
  272. <execution>
  273. <id>copy-resources-package</id>
  274. <phase>package</phase>
  275. <goals>
  276. <goal>copy-resources</goal>
  277. </goals>
  278. <configuration>
  279. <outputDirectory>${project.build.directory}/jfx/app</outputDirectory>
  280. <resources>
  281. <resource>
  282. <directory>src/includes</directory>
  283. <filtering>true</filtering>
  284. <excludes>
  285. <exclude>version.info</exclude>
  286. <exclude>name.info</exclude>
  287. </excludes>
  288. </resource>
  289. </resources>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. <plugin>
  295. <artifactId>maven-antrun-plugin</artifactId>
  296. <version>1.4</version>
  297. <executions>
  298. <execution>
  299. <phase>process-resources</phase>
  300. <configuration>
  301. <tasks>
  302. <copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" overwrite="true" />
  303. <copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" overwrite="true" />
  304. <copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" overwrite="true" />
  305. <copy file="${project.build.directory}/README.md" toFile="${basedir}/README.md" overwrite="true" />
  306. </tasks>
  307. </configuration>
  308. <goals>
  309. <goal>run</goal>
  310. </goals>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. </plugins>
  315. </build>
  316. </project>