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.

375 lines
13 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>Parent</artifactId>
  6. <version>1.0.0</version>
  7. <packaging>pom</packaging>
  8. <name>Image-Tools-Parent</name>
  9. <pluginRepositories>
  10. <pluginRepository>
  11. <id>sonatype-releases</id>
  12. <url>http://oss.sonatype.org/content/repositories/releases</url>
  13. </pluginRepository>
  14. <pluginRepository>
  15. <id>clojars.org</id>
  16. <url>http://clojars.org/repo</url>
  17. </pluginRepository>
  18. </pluginRepositories>
  19. <properties>
  20. <imagetools.engine.version>0.1.2</imagetools.engine.version>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <jdk.version>1.8</jdk.version>
  23. <scala.binary.version>2.11</scala.binary.version>
  24. <lib.scala-library.version>2.11.2</lib.scala-library.version>
  25. <lib.junit.version>4.11</lib.junit.version>
  26. <lib.scalatest.version>2.2.1</lib.scalatest.version>
  27. <lib.logback.version>1.1.2</lib.logback.version>
  28. <lib.slf4j.version>1.7.7</lib.slf4j.version>
  29. <lib.grizzled-slf4j.version>1.0.2</lib.grizzled-slf4j.version>
  30. <lib.akka.version>2.3.5</lib.akka.version>
  31. <lib.jta.version>1.1</lib.jta.version>
  32. <lib.ehcache.version>2.8.0</lib.ehcache.version>
  33. <lib.commons-cli.version>1.2</lib.commons-cli.version>
  34. <lib.commons-codec.version>1.9</lib.commons-codec.version>
  35. <lib.jtransforms.version>2.4.0</lib.jtransforms.version>
  36. <lib.typesafe-config.version>1.2.0</lib.typesafe-config.version>
  37. <lib.thumbnailator.version>[0.4, 0.5)</lib.thumbnailator.version>
  38. <lib.h2database.version>1.3.175</lib.h2database.version>
  39. <lib.hibernate.version>4.3.0.Final</lib.hibernate.version>
  40. <lib.hibernate.ehcache.version>2.6.6</lib.hibernate.ehcache.version>
  41. <lib.markdown4j.version>2.2-cj-1.0</lib.markdown4j.version>
  42. <lib.scala-arm.version>1.4</lib.scala-arm.version>
  43. </properties>
  44. <dependencyManagement>
  45. <dependencies>
  46. <dependency>
  47. <groupId>com.sothr.imagetools</groupId>
  48. <artifactId>ImageTools-Engine</artifactId>
  49. <version>${imagetools.engine.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>junit</groupId>
  53. <artifactId>junit</artifactId>
  54. <version>${lib.junit.version}</version>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.scalatest</groupId>
  59. <artifactId>scalatest_${scala.binary.version}</artifactId>
  60. <version>${lib.scalatest.version}</version>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>ch.qos.logback</groupId>
  65. <artifactId>logback-core</artifactId>
  66. <version>${lib.logback.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>ch.qos.logback</groupId>
  70. <artifactId>logback-classic</artifactId>
  71. <version>${lib.logback.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>ch.qos.logback</groupId>
  75. <artifactId>logback-access</artifactId>
  76. <version>${lib.logback.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.slf4j</groupId>
  80. <artifactId>slf4j-api</artifactId>
  81. <version>${lib.slf4j.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.clapper</groupId>
  85. <artifactId>grizzled-slf4j_${scala.binary.version}</artifactId>
  86. <version>${lib.grizzled-slf4j.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.scala-lang</groupId>
  90. <artifactId>scala-library</artifactId>
  91. <version>${lib.scala-library.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>net.coobird</groupId>
  95. <artifactId>thumbnailator</artifactId>
  96. <version>${lib.thumbnailator.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.typesafe</groupId>
  100. <artifactId>config</artifactId>
  101. <version>${lib.typesafe-config.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>net.sourceforge.jtransforms</groupId>
  105. <artifactId>jtransforms</artifactId>
  106. <version>${lib.jtransforms.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>commons-cli</groupId>
  110. <artifactId>commons-cli</artifactId>
  111. <version>${lib.commons-cli.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>commons-codec</groupId>
  115. <artifactId>commons-codec</artifactId>
  116. <version>${lib.commons-codec.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>javax.transaction</groupId>
  120. <artifactId>jta</artifactId>
  121. <version>${lib.jta.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>net.sf.ehcache</groupId>
  125. <artifactId>ehcache</artifactId>
  126. <version>${lib.ehcache.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.typesafe.akka</groupId>
  130. <artifactId>akka-actor_2.11</artifactId>
  131. <version>${lib.akka.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.typesafe.akka</groupId>
  135. <artifactId>akka-slf4j_${scala.binary.version}</artifactId>
  136. <version>${lib.akka.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.h2database</groupId>
  140. <artifactId>h2</artifactId>
  141. <version>${lib.h2database.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.hibernate</groupId>
  145. <artifactId>hibernate-core</artifactId>
  146. <version>${lib.hibernate.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.hibernate</groupId>
  150. <artifactId>hibernate-ehcache</artifactId>
  151. <version>${lib.hibernate.version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>net.sf.ehcache</groupId>
  155. <artifactId>ehcache-core</artifactId>
  156. <version>${lib.hibernate.ehcache.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.hibernate</groupId>
  160. <artifactId>hibernate-c3p0</artifactId>
  161. <version>${lib.hibernate.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.commonjava.googlecode.markdown4j</groupId>
  165. <artifactId>markdown4j</artifactId>
  166. <version>${lib.markdown4j.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.jsuereth</groupId>
  170. <artifactId>scala-arm_${scala.binary.version}</artifactId>
  171. <version>${lib.scala-arm.version}</version>
  172. </dependency>
  173. </dependencies>
  174. </dependencyManagement>
  175. <build>
  176. <resources>
  177. <resource>
  178. <directory>src/main/resources</directory>
  179. <filtering>true</filtering>
  180. <includes>
  181. <include>**/*.conf</include>
  182. <include>**/*.properties</include>
  183. <include>**/*.info</include>
  184. <include>**/*.md</include>
  185. </includes>
  186. </resource>
  187. <resource>
  188. <directory>src/main/resources</directory>
  189. <filtering>false</filtering>
  190. <excludes>
  191. <exclude>**/*.conf</exclude>
  192. <exclude>**/*.properties</exclude>
  193. <exclude>**/*.info</exclude>
  194. <exclude>**/*.md</exclude>
  195. </excludes>
  196. </resource>
  197. </resources>
  198. <testResources>
  199. <testResource>
  200. <directory>src/test/resources</directory>
  201. <filtering>true</filtering>
  202. <includes>
  203. <include>**/*.conf</include>
  204. <include>**/*.properties</include>
  205. <include>**/*.info</include>
  206. <include>**/*.md</include>
  207. </includes>
  208. </testResource>
  209. <testResource>
  210. <directory>src/test/resources</directory>
  211. <filtering>false</filtering>
  212. <excludes>
  213. <exclude>**/*.conf</exclude>
  214. <exclude>**/*.properties</exclude>
  215. <exclude>**/*.info</exclude>
  216. <exclude>**/*.md</exclude>
  217. </excludes>
  218. </testResource>
  219. </testResources>
  220. <pluginManagement>
  221. <plugins>
  222. <plugin>
  223. <groupId>net.alchim31.maven</groupId>
  224. <artifactId>scala-maven-plugin</artifactId>
  225. <version>3.1.6</version>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-resources-plugin</artifactId>
  230. <version>2.6</version>
  231. </plugin>
  232. </plugins>
  233. </pluginManagement>
  234. <plugins>
  235. <!-- disable surefire for java tests-->
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-surefire-plugin</artifactId>
  239. <version>2.7</version>
  240. <configuration>
  241. <skipTests>true</skipTests>
  242. </configuration>
  243. </plugin>
  244. <!-- Version Management -->
  245. <plugin>
  246. <groupId>com.code54.mojo</groupId>
  247. <artifactId>buildversion-plugin</artifactId>
  248. <version>1.0.3</version>
  249. <executions>
  250. <execution>
  251. <goals>
  252. <goal>set-properties</goal>
  253. </goals>
  254. </execution>
  255. </executions>
  256. </plugin>
  257. <!-- Override Compilation Settings -->
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-compiler-plugin</artifactId>
  261. <version>3.1</version>
  262. <configuration>
  263. <source>${jdk.version}</source>
  264. <target>${jdk.version}</target>
  265. </configuration>
  266. <executions>
  267. <execution>
  268. <phase>compile</phase>
  269. <goals>
  270. <goal>compile</goal>
  271. </goals>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <!-- Handle Polygot Scala -->
  276. <plugin>
  277. <groupId>net.alchim31.maven</groupId>
  278. <artifactId>scala-maven-plugin</artifactId>
  279. <executions>
  280. <execution>
  281. <id>scala-compile-first</id>
  282. <phase>process-resources</phase>
  283. <goals>
  284. <goal>add-source</goal>
  285. <goal>compile</goal>
  286. </goals>
  287. </execution>
  288. <execution>
  289. <id>scala-test-compile</id>
  290. <phase>process-test-resources</phase>
  291. <goals>
  292. <goal>testCompile</goal>
  293. </goals>
  294. </execution>
  295. </executions>
  296. <!--<configuration>
  297. <jvmArgs>
  298. <jvmArg>-Xms64m</jvmArg>
  299. <jvmArg>-Xmx1024m</jvmArg>
  300. </jvmArgs>
  301. </configuration>-->
  302. </plugin>
  303. <!-- Build Management -->
  304. <plugin>
  305. <groupId>org.apache.maven.plugins</groupId>
  306. <artifactId>maven-dependency-plugin</artifactId>
  307. <version>2.6</version>
  308. <executions>
  309. <execution>
  310. <id>copy-dependencies</id>
  311. <phase>package</phase>
  312. <goals>
  313. <goal>copy-dependencies</goal>
  314. </goals>
  315. <configuration>
  316. <includeScope>runtime</includeScope>
  317. <outputDirectory>
  318. ${project.build.directory}/release/lib
  319. </outputDirectory>
  320. </configuration>
  321. </execution>
  322. </executions>
  323. </plugin>
  324. <!-- Resource Management -->
  325. <plugin>
  326. <groupId>org.apache.maven.plugins</groupId>
  327. <artifactId>maven-resources-plugin</artifactId>
  328. <version>2.6</version>
  329. <executions>
  330. <execution>
  331. <id>copy-resources</id>
  332. <phase>initialize</phase>
  333. <goals>
  334. <goal>copy-resources</goal>
  335. </goals>
  336. <configuration>
  337. <outputDirectory>${project.build.directory}</outputDirectory>
  338. <resources>
  339. <resource>
  340. <directory>src/includes</directory>
  341. <filtering>true</filtering>
  342. </resource>
  343. </resources>
  344. </configuration>
  345. </execution>
  346. <execution>
  347. <id>copy-resources-package</id>
  348. <phase>package</phase>
  349. <goals>
  350. <goal>copy-resources</goal>
  351. </goals>
  352. <configuration>
  353. <outputDirectory>${project.build.directory}/release</outputDirectory>
  354. <resources>
  355. <resource>
  356. <directory>src/includes</directory>
  357. <filtering>true</filtering>
  358. <excludes>
  359. <exclude>version.info</exclude>
  360. <exclude>name.info</exclude>
  361. </excludes>
  362. </resource>
  363. </resources>
  364. </configuration>
  365. </execution>
  366. </executions>
  367. </plugin>
  368. </plugins>
  369. </build>
  370. </project>