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.

381 lines
13 KiB

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