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.

181 lines
5.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-SNAPSHOT</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. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <jdk.version>1.7</jdk.version>
  17. <lib.junit.version>3.8.1</lib.junit.version>
  18. <lib.log4j.version>1.2.17</lib.log4j.version>
  19. <lib.slf4j.version>1.7.5</lib.slf4j.version>
  20. <lib.scala-library.version>2.10.2</lib.scala-library.version>
  21. <lib.scalafx.version>8.0.0-M1</lib.scalafx.version>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>junit</groupId>
  26. <artifactId>junit</artifactId>
  27. <version>${lib.junit.version}</version>
  28. <scope>test</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>log4j</groupId>
  32. <artifactId>log4j</artifactId>
  33. <version>${lib.log4j.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.slf4j</groupId>
  37. <artifactId>slf4j-api</artifactId>
  38. <version>${lib.slf4j.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.slf4j</groupId>
  42. <artifactId>slf4j-log4j12</artifactId>
  43. <version>${lib.slf4j.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.scala-lang</groupId>
  47. <artifactId>scala-library</artifactId>
  48. <version>${lib.scala-library.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.scalafx</groupId>
  52. <artifactId>scalafx_2.10</artifactId>
  53. <version>${lib.scalafx.version}</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <resources>
  58. </resources>
  59. <pluginManagement>
  60. <plugins>
  61. <plugin>
  62. <groupId>com.zenjava</groupId>
  63. <artifactId>javafx-maven-plugin</artifactId>
  64. <version>2.0</version>
  65. <configuration>
  66. <mainClass>com.sothr.imagetools.App</mainClass>
  67. </configuration>
  68. </plugin>
  69. <plugin>
  70. <groupId>net.alchim31.maven</groupId>
  71. <artifactId>scala-maven-plugin</artifactId>
  72. <version>3.1.6</version>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-resources-plugin</artifactId>
  77. <version>2.6</version>
  78. </plugin>
  79. </plugins>
  80. </pluginManagement>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-compiler-plugin</artifactId>
  85. <version>3.1</version>
  86. <configuration>
  87. <source>${jdk.version}</source>
  88. <target>${jdk.version}</target>
  89. </configuration>
  90. <executions>
  91. <execution>
  92. <phase>compile</phase>
  93. <goals>
  94. <goal>compile</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>net.alchim31.maven</groupId>
  101. <artifactId>scala-maven-plugin</artifactId>
  102. <executions>
  103. <execution>
  104. <id>scala-compile-first</id>
  105. <phase>process-resources</phase>
  106. <goals>
  107. <goal>add-source</goal>
  108. <goal>compile</goal>
  109. </goals>
  110. </execution>
  111. <execution>
  112. <id>scala-test-compile</id>
  113. <phase>process-test-resources</phase>
  114. <goals>
  115. <goal>testCompile</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-jar-plugin</artifactId>
  123. <version>2.4</version>
  124. <configuration>
  125. <archive>
  126. <manifest>
  127. <addClasspath>true</addClasspath>
  128. <mainClass>com.sothr.imagetools.App</mainClass>
  129. <classpathPrefix>lib</classpathPrefix>
  130. </manifest>
  131. </archive>
  132. </configuration>
  133. </plugin>
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-dependency-plugin</artifactId>
  137. <version>2.5.1</version>
  138. <executions>
  139. <execution>
  140. <id>copy-dependencies</id>
  141. <phase>package</phase>
  142. <goals>
  143. <goal>copy-dependencies</goal>
  144. </goals>
  145. <configuration>
  146. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  147. </configuration>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-resources-plugin</artifactId>
  154. <version>2.6</version>
  155. <executions>
  156. <execution>
  157. <id>copy-resources</id>
  158. <phase>validate</phase>
  159. <goals>
  160. <goal>copy-resources</goal>
  161. </goals>
  162. <configuration>
  163. <outputDirectory>${basedir}/target</outputDirectory>
  164. <resources>
  165. <resource>
  166. <directory>src/includes</directory>
  167. <filtering>true</filtering>
  168. </resource>
  169. </resources>
  170. </configuration>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. </plugins>
  175. </build>
  176. </project>