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.

425 lines
14 KiB

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