apache-ignite
466 строк · 18.8 Кб
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4Licensed to the Apache Software Foundation (ASF) under one or more
5contributor license agreements. See the NOTICE file distributed with
6this work for additional information regarding copyright ownership.
7The ASF licenses this file to You under the Apache License, Version 2.0
8(the "License"); you may not use this file except in compliance with
9the License. You may obtain a copy of the License at
10
11http://www.apache.org/licenses/LICENSE-2.0
12
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
18-->
19
20<!--
21POM file.
22-->
23<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">24<modelVersion>4.0.0</modelVersion>25
26<parent>27<groupId>org.apache.ignite</groupId>28<artifactId>ignite-parent-internal</artifactId>29<version>${revision}</version>30<relativePath>../../parent-internal/pom.xml</relativePath>31</parent>32
33<artifactId>ignite-core</artifactId>34
35<properties>36<ignite.update.notifier.product>apache-ignite</ignite.update.notifier.product>37</properties>38
39<dependencies>40<dependency>41<groupId>javax.cache</groupId>42<artifactId>cache-api</artifactId>43<version>${javax.cache.version}</version>44</dependency>45
46<dependency>47<groupId>org.jetbrains</groupId>48<artifactId>annotations</artifactId>49<version>${jetbrains.annotations.version}</version>50</dependency>51
52<dependency>53<groupId>${project.groupId}</groupId>54<artifactId>ignite-tools</artifactId>55<scope>test</scope>56</dependency>57
58<dependency>59<groupId>mx4j</groupId>60<artifactId>mx4j-tools</artifactId>61<version>3.0.1</version>62<scope>test</scope>63</dependency>64
65<dependency>66<groupId>commons-collections</groupId>67<artifactId>commons-collections</artifactId>68<version>${commons.collections.version}</version>69<scope>test</scope>70</dependency>71
72<dependency>73<groupId>commons-dbcp</groupId>74<artifactId>commons-dbcp</artifactId>75<version>${commons.dbcp.version}</version>76<scope>test</scope>77</dependency>78
79<dependency>80<groupId>com.thoughtworks.xstream</groupId>81<artifactId>xstream</artifactId>82<version>1.4.8</version>83<scope>test</scope>84</dependency>85
86<dependency>87<groupId>commons-cli</groupId>88<artifactId>commons-cli</artifactId>89<version>1.2</version>90<scope>test</scope>91</dependency>92
93<dependency>94<groupId>org.hsqldb</groupId>95<artifactId>hsqldb</artifactId>96<version>1.8.0.10</version>97<scope>test</scope>98</dependency>99
100<dependency>101<groupId>com.h2database</groupId>102<artifactId>h2</artifactId>103<version>${h2.version}</version>104<scope>test</scope>105</dependency>106
107<dependency>108<groupId>org.mockito</groupId>109<artifactId>mockito-core</artifactId>110<version>${mockito.version}</version>111<scope>test</scope>112</dependency>113
114<dependency>115<groupId>org.eclipse.jetty</groupId>116<artifactId>jetty-servlets</artifactId>117<version>${jetty.version}</version>118<scope>test</scope>119</dependency>120
121<dependency>122<groupId>org.eclipse.jetty</groupId>123<artifactId>jetty-webapp</artifactId>124<version>${jetty.version}</version>125<scope>test</scope>126</dependency>127
128<dependency>129<groupId>com.esotericsoftware.kryo</groupId>130<artifactId>kryo</artifactId>131<version>2.20</version>132<scope>test</scope>133</dependency>134
135<dependency>136<groupId>c3p0</groupId>137<artifactId>c3p0</artifactId>138<version>0.9.1</version>139<scope>test</scope>140</dependency>141
142<dependency>143<groupId>org.apache.logging.log4j</groupId>144<artifactId>log4j-core</artifactId>145<scope>test</scope>146</dependency>147
148<dependency>149<groupId>org.springframework</groupId>150<artifactId>spring-beans</artifactId>151<version>${spring.version}</version>152<scope>test</scope>153</dependency>154
155<dependency>156<groupId>org.springframework</groupId>157<artifactId>spring-context</artifactId>158<version>${spring.version}</version>159<scope>test</scope>160</dependency>161
162<dependency>163<groupId>commons-io</groupId>164<artifactId>commons-io</artifactId>165<version>${commons.io.version}</version>166<scope>test</scope>167</dependency>168
169<dependency>170<groupId>com.google.guava</groupId>171<artifactId>guava</artifactId>172<version>${guava.version}</version>173<scope>test</scope>174</dependency>175
176<dependency>177<groupId>org.javassist</groupId>178<artifactId>javassist</artifactId>179<version>${javassist.version}</version>180<scope>test</scope>181</dependency>182
183<dependency>184<groupId>org.apache.commons</groupId>185<artifactId>commons-lang3</artifactId>186<version>${commons.lang3.version}</version>187<scope>test</scope>188</dependency>189
190<dependency>191<groupId>org.hamcrest</groupId>192<artifactId>hamcrest</artifactId>193<version>${hamcrest.version}</version>194<scope>test</scope>195</dependency>196</dependencies>197
198<build>199<resources>200<resource>201<directory>src/main/java</directory>202<excludes>203<exclude>**/*.java</exclude>204</excludes>205</resource>206
207<resource>208<directory>src/main/resources</directory>209</resource>210</resources>211
212<testResources>213<testResource>214<directory>src/test/java</directory>215<excludes>216<exclude>**/*.java</exclude>217</excludes>218</testResource>219<testResource>220<directory>src/test/resources</directory>221</testResource>222<testResource>223<directory>src/test/config</directory>224<includes>225<include>log4j2-test.xml</include>226<include>tests.properties</include>227</includes>228<!-- Hide the test logger configuration from the log4j autoconfigurator229in case the user starts Ignite with test.jar on the classpath. -->
230<targetPath>${project.build.testOutputDirectory}/test/config</targetPath>231</testResource>232
233</testResources>234
235<plugins>236<plugin>237<groupId>org.apache.maven.plugins</groupId>238<artifactId>maven-jar-plugin</artifactId>239<executions>240<execution>241<goals>242<goal>test-jar</goal>243</goals>244</execution>245</executions>246</plugin>247
248<plugin>249<groupId>org.codehaus.mojo</groupId>250<artifactId>exec-maven-plugin</artifactId>251
252<executions>253<execution>254<phase>process-classes</phase>255<goals>256<goal>java</goal>257</goals>258<configuration>259<includePluginDependencies>true</includePluginDependencies>260<mainClass>org.apache.ignite.tools.classgen.ClassesGenerator</mainClass>261<arguments>262<argument>${project.basedir}/target/classes</argument>263<argument>264<![CDATA[265#
266# Licensed to the Apache Software Foundation (ASF) under one or more
267# contributor license agreements. See the NOTICE file distributed with
268# this work for additional information regarding copyright ownership.
269# The ASF licenses this file to You under the Apache License, Version 2.0
270# (the "License"); you may not use this file except in compliance with
271# the License. You may obtain a copy of the License at
272#
273# http://www.apache.org/licenses/LICENSE-2.0
274#
275# Unless required by applicable law or agreed to in writing, software
276# distributed under the License is distributed on an "AS IS" BASIS,
277# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
278# See the License for the specific language governing permissions and
279# limitations under the License.
280#
281]]>
282</argument>283<argument>org.apache.ignite</argument>284</arguments>285</configuration>286</execution>287</executions>288</plugin>289
290<plugin>291<groupId>org.apache.maven.plugins</groupId>292<artifactId>maven-deploy-plugin</artifactId>293<version>2.8.2</version>294<configuration>295<skip>false</skip>296</configuration>297</plugin>298</plugins>299</build>300
301<profiles>302<profile>303<id>release</id>304<activation>305<activeByDefault>true</activeByDefault>306</activation>307<build>308<plugins>309<plugin>310<groupId>org.apache.maven.plugins</groupId>311<artifactId>maven-antrun-plugin</artifactId>312
313<inherited>false</inherited>314<executions>315<execution>316<id>properties-augmentation</id>317<goals>318<goal>run</goal>319</goals>320<phase>process-resources</phase>321<configuration>322<failOnError>false</failOnError>323<target>324<tstamp>325<format property="ignite.rel.date" pattern="ddMMyyyy" locale="en" />326</tstamp>327
328<property name="props.file" value="../../modules/core/target/classes/ignite.properties" />329
330<replaceregexp file="${props.file}" byline="true">331<regexp pattern="ignite.update.notifier.enabled.by.default=.*" />332<substitution expression="ignite.update.notifier.enabled.by.default=${update.notifier.enabled.by.default}" />333</replaceregexp>334
335<replaceregexp file="${props.file}" byline="true">336<regexp pattern="ignite.rel.date=.*" />337<substitution expression="ignite.rel.date=${ignite.rel.date}" />338</replaceregexp>339
340<replaceregexp file="${props.file}" byline="true">341<regexp pattern="ignite.update.status.params=.*" />342<substitution expression="ignite.update.status.params=ver=${project.version}&product=${ignite.update.notifier.product}" />343</replaceregexp>344
345<replaceregexp file="${props.file}" byline="true">346<regexp pattern="ignite.version=.*" />347<substitution expression="ignite.version=${project.version}" />348</replaceregexp>349
350<!-- git (to be replaced by git hooks)-->351
352<exec executable="${git.exec}" outputproperty="ignite.build" failonerror="true">353<arg line="log -1 --format=%ct" />354</exec>355
356<exec executable="${git.exec}" outputproperty="ignite.revision" failonerror="true">357<arg line="log -1 --format=%H" />358</exec>359
360<replaceregexp file="${props.file}" byline="true">361<regexp pattern="ignite.revision=.*" />362<substitution expression="ignite.revision=${ignite.revision}" />363</replaceregexp>364
365<replaceregexp file="${props.file}" byline="true">366<regexp pattern="ignite.build=.*" />367<substitution expression="ignite.build=${ignite.build}" />368</replaceregexp>369</target>370</configuration>371</execution>372</executions>373</plugin>374</plugins>375</build>376</profile>377
378<profile>379<id>jcache-tck</id>380
381<properties>382<domain-lib-dir>${project.build.directory}/domainlib</domain-lib-dir>383<domain-jar>domain.jar</domain-jar>384</properties>385
386<dependencies>387<dependency>388<groupId>javax.cache</groupId>389<artifactId>cache-tests</artifactId>390<version>${javax.cache.tck.version}</version>391</dependency>392
393<dependency>394<groupId>javax.cache</groupId>395<artifactId>cache-tests</artifactId>396<classifier>tests</classifier>397<version>${javax.cache.tck.version}</version>398<scope>test</scope>399</dependency>400
401<dependency>402<groupId>org.hamcrest</groupId>403<artifactId>hamcrest-library</artifactId>404<version>${hamcrest.version}</version>405<scope>test</scope>406</dependency>407</dependencies>408
409<build>410<plugins>411<plugin>412<groupId>org.apache.maven.plugins</groupId>413<artifactId>maven-dependency-plugin</artifactId>414<version>2.8</version>415<executions>416<!--Required because JUnit will not detect tests simply included in a dep-->417<execution>418<id>copy-cache-tests</id>419<goals>420<goal>unpack-dependencies</goal>421</goals>422<configuration>423<outputDirectory>${project.build.testOutputDirectory}</outputDirectory>424<includeArtifactIds>cache-tests</includeArtifactIds>425<includeScope>test</includeScope>426</configuration>427</execution>428</executions>429</plugin>430
431<plugin>432<groupId>org.apache.maven.plugins</groupId>433<artifactId>maven-deploy-plugin</artifactId>434<configuration>435<skip>true</skip>436</configuration>437</plugin>438
439<plugin>440<groupId>org.apache.maven.plugins</groupId>441<artifactId>maven-surefire-plugin</artifactId>442<configuration>443<systemPropertyVariables>444<domainJar>${domain-lib-dir}/${domain-jar}</domainJar>445<javax.management.builder.initial>org.apache.ignite.internal.tck.TCKMBeanServerBuilder</javax.management.builder.initial>446<org.jsr107.tck.management.agentId>IgniteMBeanServer</org.jsr107.tck.management.agentId>447<javax.cache.CacheManager>org.apache.ignite.cache.CacheManager</javax.cache.CacheManager>448<javax.cache.Cache>org.apache.ignite.IgniteCache</javax.cache.Cache>449<javax.cache.Cache.Entry>org.apache.ignite.internal.processors.cache.CacheEntryImpl</javax.cache.Cache.Entry>450<javax.cache.annotation.CacheInvocationContext>javax.cache.annotation.impl.cdi.CdiCacheKeyInvocationContextImpl</javax.cache.annotation.CacheInvocationContext>451<IGNITE_QUIET>false</IGNITE_QUIET>452</systemPropertyVariables>453<excludes>454<!-- Parent's pom.xml includes all Ignite test classes (tests, suites) in the surefire plugin.455So need to exclude all of them to test only JCache tests. -->
456<exclude>**/org/apache/ignite/**/*.java</exclude>457<exclude>**/annotation/*Test.java</exclude>458<exclude>**/ClientServerTest.java</exclude>459</excludes>460</configuration>461</plugin>462</plugins>463</build>464</profile>465</profiles>466</project>467