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.

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