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.

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