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.

264 lines
8.6 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.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <jdk.version>1.7</jdk.version>
  27. <lib.junit.version>3.8.1</lib.junit.version>
  28. <lib.scalatest.version>2.0</lib.scalatest.version>
  29. <lib.log4j.version>1.2.17</lib.log4j.version>
  30. <lib.slf4j.version>1.7.5</lib.slf4j.version>
  31. <lib.grizzled-slf4j.version>1.0.1</lib.grizzled-slf4j.version>
  32. <lib.scala-library.version>2.10.0</lib.scala-library.version>
  33. <lib.scalafx.version>8.0.0-M1</lib.scalafx.version>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>junit</groupId>
  38. <artifactId>junit</artifactId>
  39. <version>${lib.junit.version}</version>
  40. <scope>test</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.scalatest</groupId>
  44. <artifactId>scalatest_2.10</artifactId>
  45. <version>${lib.scalatest.version}</version>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>log4j</groupId>
  50. <artifactId>log4j</artifactId>
  51. <version>${lib.log4j.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.slf4j</groupId>
  55. <artifactId>slf4j-api</artifactId>
  56. <version>${lib.slf4j.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.slf4j</groupId>
  60. <artifactId>slf4j-log4j12</artifactId>
  61. <version>${lib.slf4j.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.clapper</groupId>
  65. <artifactId>grizzled-slf4j_2.10</artifactId>
  66. <version>${lib.grizzled-slf4j.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.scala-lang</groupId>
  70. <artifactId>scala-library</artifactId>
  71. <version>${lib.scala-library.version}</version>
  72. </dependency>
  73. </dependencies>
  74. <build>
  75. <resources>
  76. <resource>
  77. <directory>src/main/resources</directory>
  78. <filtering>true</filtering>
  79. <includes>
  80. <include>**/*.properties</include>
  81. <include>**/*.info</include>
  82. </includes>
  83. </resource>
  84. <resource>
  85. <directory>src/main/resources</directory>
  86. <filtering>false</filtering>
  87. <excludes>
  88. <exclude>**/*.properties</exclude>
  89. <exclude>**/*.info</exclude>
  90. </excludes>
  91. </resource>
  92. </resources>
  93. <pluginManagement>
  94. <plugins>
  95. <plugin>
  96. <groupId>com.zenjava</groupId>
  97. <artifactId>javafx-maven-plugin</artifactId>
  98. <version>2.0</version>
  99. <configuration>
  100. <mainClass>com.sothr.imagetools.App</mainClass>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>net.alchim31.maven</groupId>
  105. <artifactId>scala-maven-plugin</artifactId>
  106. <version>3.1.6</version>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-resources-plugin</artifactId>
  111. <version>2.6</version>
  112. </plugin>
  113. </plugins>
  114. </pluginManagement>
  115. <plugins>
  116. <!-- enable surefire for java tests-->
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-surefire-plugin</artifactId>
  120. <version>2.7</version>
  121. <configuration>
  122. <skipTests>false</skipTests>
  123. </configuration>
  124. </plugin>
  125. <!-- enable scalatest for scala tests-->
  126. <plugin>
  127. <groupId>org.scalatest</groupId>
  128. <artifactId>scalatest-maven-plugin</artifactId>
  129. <version>1.0-RC2</version>
  130. <configuration>
  131. <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
  132. <junitxml>.</junitxml>
  133. <filereports>WDF TestSuite.txt</filereports>
  134. </configuration>
  135. <executions>
  136. <execution>
  137. <id>test</id>
  138. <goals>
  139. <goal>test</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <plugin>
  145. <groupId>com.code54.mojo</groupId>
  146. <artifactId>buildversion-plugin</artifactId>
  147. <version>1.0.3</version>
  148. <executions>
  149. <execution>
  150. <goals>
  151. <goal>set-properties</goal>
  152. </goals>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-compiler-plugin</artifactId>
  159. <version>3.1</version>
  160. <configuration>
  161. <source>${jdk.version}</source>
  162. <target>${jdk.version}</target>
  163. </configuration>
  164. <executions>
  165. <execution>
  166. <phase>compile</phase>
  167. <goals>
  168. <goal>compile</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>net.alchim31.maven</groupId>
  175. <artifactId>scala-maven-plugin</artifactId>
  176. <executions>
  177. <execution>
  178. <id>scala-compile-first</id>
  179. <phase>process-resources</phase>
  180. <goals>
  181. <goal>add-source</goal>
  182. <goal>compile</goal>
  183. </goals>
  184. </execution>
  185. <execution>
  186. <id>scala-test-compile</id>
  187. <phase>process-test-resources</phase>
  188. <goals>
  189. <goal>testCompile</goal>
  190. </goals>
  191. </execution>
  192. </executions>
  193. </plugin>
  194. <plugin>
  195. <artifactId>maven-resources-plugin</artifactId>
  196. <version>2.6</version>
  197. <executions>
  198. <execution>
  199. <id>copy-resources</id>
  200. <phase>initialize</phase>
  201. <goals>
  202. <goal>copy-resources</goal>
  203. </goals>
  204. <configuration>
  205. <outputDirectory>${project.build.directory}</outputDirectory>
  206. <resources>
  207. <resource>
  208. <directory>src/includes</directory>
  209. <filtering>true</filtering>
  210. </resource>
  211. </resources>
  212. </configuration>
  213. </execution>
  214. <execution>
  215. <id>copy-resources-package</id>
  216. <phase>package</phase>
  217. <goals>
  218. <goal>copy-resources</goal>
  219. </goals>
  220. <configuration>
  221. <outputDirectory>${project.build.directory}/jfx/app</outputDirectory>
  222. <resources>
  223. <resource>
  224. <directory>src/includes</directory>
  225. <filtering>true</filtering>
  226. <excludes>
  227. <exclude>version.info</exclude>
  228. <exclude>name.info</exclude>
  229. </excludes>
  230. </resource>
  231. </resources>
  232. </configuration>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. <plugin>
  237. <artifactId>maven-antrun-plugin</artifactId>
  238. <version>1.4</version>
  239. <executions>
  240. <execution>
  241. <phase>process-resources</phase>
  242. <configuration>
  243. <tasks>
  244. <copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" overwrite="true" />
  245. <copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" overwrite="true" />
  246. <copy file="${basedir}/LICENSE" toFile="${basedir}/src/includes/LICENSE" overwrite="true" />
  247. <copy file="${basedir}/README.md" toFile="${basedir}/src/includes/README.md" overwrite="true" />
  248. </tasks>
  249. </configuration>
  250. <goals>
  251. <goal>run</goal>
  252. </goals>
  253. </execution>
  254. </executions>
  255. </plugin>
  256. </plugins>
  257. </build>
  258. </project>