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.

176 lines
5.4 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. </dependencies>
  51. <build>
  52. <resources>
  53. </resources>
  54. <pluginManagement>
  55. <plugins>
  56. <plugin>
  57. <groupId>com.zenjava</groupId>
  58. <artifactId>javafx-maven-plugin</artifactId>
  59. <version>2.0</version>
  60. <configuration>
  61. <mainClass>com.sothr.imagetools.App</mainClass>
  62. </configuration>
  63. </plugin>
  64. <plugin>
  65. <groupId>net.alchim31.maven</groupId>
  66. <artifactId>scala-maven-plugin</artifactId>
  67. <version>3.1.6</version>
  68. </plugin>
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-resources-plugin</artifactId>
  72. <version>2.6</version>
  73. </plugin>
  74. </plugins>
  75. </pluginManagement>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. <version>3.1</version>
  81. <configuration>
  82. <source>${jdk.version}</source>
  83. <target>${jdk.version}</target>
  84. </configuration>
  85. <executions>
  86. <execution>
  87. <phase>compile</phase>
  88. <goals>
  89. <goal>compile</goal>
  90. </goals>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. <plugin>
  95. <groupId>net.alchim31.maven</groupId>
  96. <artifactId>scala-maven-plugin</artifactId>
  97. <executions>
  98. <execution>
  99. <id>scala-compile-first</id>
  100. <phase>process-resources</phase>
  101. <goals>
  102. <goal>add-source</goal>
  103. <goal>compile</goal>
  104. </goals>
  105. </execution>
  106. <execution>
  107. <id>scala-test-compile</id>
  108. <phase>process-test-resources</phase>
  109. <goals>
  110. <goal>testCompile</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-jar-plugin</artifactId>
  118. <version>2.4</version>
  119. <configuration>
  120. <archive>
  121. <manifest>
  122. <addClasspath>true</addClasspath>
  123. <mainClass>com.sothr.imagetools.App</mainClass>
  124. <classpathPrefix>lib</classpathPrefix>
  125. </manifest>
  126. </archive>
  127. </configuration>
  128. </plugin>
  129. <plugin>
  130. <groupId>org.apache.maven.plugins</groupId>
  131. <artifactId>maven-dependency-plugin</artifactId>
  132. <version>2.5.1</version>
  133. <executions>
  134. <execution>
  135. <id>copy-dependencies</id>
  136. <phase>package</phase>
  137. <goals>
  138. <goal>copy-dependencies</goal>
  139. </goals>
  140. <configuration>
  141. <outputDirectory>${project.build.directory}/lib/</outputDirectory>
  142. </configuration>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-resources-plugin</artifactId>
  149. <version>2.6</version>
  150. <executions>
  151. <execution>
  152. <id>copy-resources</id>
  153. <phase>validate</phase>
  154. <goals>
  155. <goal>copy-resources</goal>
  156. </goals>
  157. <configuration>
  158. <outputDirectory>${basedir}/target</outputDirectory>
  159. <resources>
  160. <resource>
  161. <directory>src/includes</directory>
  162. <filtering>true</filtering>
  163. </resource>
  164. </resources>
  165. </configuration>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. </plugins>
  170. </build>
  171. </project>