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.

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