Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 1279 lines (1225 sloc) 59.1 KB
<!--
~ Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-root</artifactId>
<packaging>pom</packaging>
<version>3.12-SNAPSHOT</version>
<name>Hazelcast Root</name>
<description>Hazelcast In-Memory DataGrid</description>
<url>http://www.hazelcast.com/</url>
<modules>
<module>hazelcast</module>
<module>hazelcast-client</module>
<module>hazelcast-spring</module>
<module>hazelcast-build-utils</module>
<module>hazelcast-all</module>
</modules>
<properties>
<main.basedir>${project.basedir}</main.basedir>
<client.protocol.version>1.7.0-8</client.protocol.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.6</jdk.version>
<target.dir>target</target.dir>
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp>
<hazelcast.distribution>Hazelcast</hazelcast.distribution>
<hazelcast.serialization.version>1</hazelcast.serialization.version>
<hazelcast.serverMainClass>com.hazelcast.core.server.StartServer</hazelcast.serverMainClass>
<!-- Not using 3.1 at the moment since it recompiles all classes every time -->
<!-- https://issues.apache.org/jira/browse/MCOMPILER-205 -->
<!--<maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>-->
<maven.compiler.plugin.version>2.5.1</maven.compiler.plugin.version>
<maven.jar.plugin.version>2.4</maven.jar.plugin.version>
<maven.source.plugin.version>2.2.1</maven.source.plugin.version>
<maven.javadoc.plugin.version>2.9</maven.javadoc.plugin.version>
<maven.antrun.plugin.version>1.7</maven.antrun.plugin.version>
<maven.gpg.plugin.version>1.4</maven.gpg.plugin.version>
<maven.assembly.plugin.version>2.4</maven.assembly.plugin.version>
<maven.rar.plugin.version>2.2</maven.rar.plugin.version>
<maven.bundle.plugin.version>2.3.7</maven.bundle.plugin.version>
<maven.shade.plugin.version>2.2</maven.shade.plugin.version>
<maven.dependency.plugin.version>2.10</maven.dependency.plugin.version>
<maven.animal.sniffer.plugin.version>1.15</maven.animal.sniffer.plugin.version>
<maven.git.commit.id.plugin.version>2.1.10</maven.git.commit.id.plugin.version>
<maven.surefire.plugin.version>2.21.0</maven.surefire.plugin.version>
<maven.checkstyle.plugin.version>2.15</maven.checkstyle.plugin.version>
<maven.spotbugs.plugin.version>3.1.6</maven.spotbugs.plugin.version>
<maven.sonar.plugin.version>3.3.0.603</maven.sonar.plugin.version>
<maven.jacoco.plugin.version>0.7.9</maven.jacoco.plugin.version>
<maven.failsafe.plugin.version>2.22.0</maven.failsafe.plugin.version>
<maven.cobertura.plugin.version>2.6</maven.cobertura.plugin.version>
<log4j.version>1.2.17</log4j.version>
<!--- This is the last log4j2 version working with Java 6 -->
<log4j2.version>2.3</log4j2.version>
<slf4j.api.version>1.7.25</slf4j.api.version>
<junit.version>4.12</junit.version>
<hamcrest.version>1.3</hamcrest.version>
<mockito.version>2.19.0</mockito.version>
<powermock.version>2.0.0-beta.5</powermock.version>
<bytebuddy.version>1.8.17</bytebuddy.version>
<reflections.version>0.9.10</reflections.version>
<jmh.version>1.16</jmh.version>
<commons-lang3.version>3.4</commons-lang3.version>
<felix.utils.version>1.10.0</felix.utils.version>
<findbugs.annotations.version>3.0.0</findbugs.annotations.version>
<http.components.version>4.3.1</http.components.version>
<sonar.jacoco.jar>${basedir}/lib/jacocoagent.jar</sonar.jacoco.jar>
<!--<sonar.phase>post-integration-test</sonar.phase>-->
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.language>java</sonar.language>
<sonar.verbose>true</sonar.verbose>
<jsr107.api.version>1.1.0</jsr107.api.version>
<jsr107.tck.version>1.1.0</jsr107.tck.version>
<h2.version>1.3.160</h2.version>
<atomikos.version>3.9.3</atomikos.version>
<extraVmArgs/>
<vmHeapSettings>-Xms512m -Xmx2G -XX:MaxPermSize=1024M</vmHeapSettings>
</properties>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/hazelcast/hazelcast.git</connection>
<developerConnection>scm:git:git@github.com:hazelcast/hazelcast.git</developerConnection>
<url>https://github.com/hazelcast/hazelcast/</url>
</scm>
<developers>
<developer>
<id>oztalip</id>
<name>talip ozturk</name>
<email>talip@hazelcast.com</email>
</developer>
<developer>
<id>fuad</id>
<name>fuad malikov</name>
<email>fuad@hazelcast.com</email>
</developer>
</developers>
<contributors>
<contributor>
<name>Hazelcast Community</name>
<email>info@hazelcast.com</email>
<url>https://hazelcast.atlassian.net/wiki/display/COM/Hazelcast+Contributor+Agreement</url>
</contributor>
</contributors>
<issueManagement>
<system>Github</system>
<url>https://github.com/hazelcast/hazelcast/issues</url>
</issueManagement>
<organization>
<name>Hazelcast, Inc.</name>
<url>http://www.hazelcast.com/</url>
</organization>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<outputDirectory>${target.dir}/classes</outputDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<testOutputDirectory>${target.dir}/test-classes</testOutputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.html</include>
<include>**/*.bat</include>
<include>**/*.sh</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.xsd</include>
<include>**/*.handlers</include>
<include>**/*.schemas</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*.so</include>
<include>**/*.license</include>
<include>**/*.key</include>
<include>**/*.ftl</include>
<include>**/META-INF/services/*.*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven.assembly.plugin.version}</version>
<configuration>
<finalName>hazelcast-${project.version}</finalName>
<descriptors>
<descriptor>./src/main/assembly/assembly.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${maven.spotbugs.plugin.version}</version>
<configuration>
<spotbugsXmlOutput>true</spotbugsXmlOutput>
<xmlOutput>true</xmlOutput>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven.source.plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<runOrder>failedfirst</runOrder>
<!-- 1C means 1 process per cpu core -->
<!-- forkCount>1C</forkCount>
<reuseForks>true</reuseForks>
<threadCount>1</threadCount>
<perCoreThreadCount>true</perCoreThreadCount>
<parallel>methods</parallel -->
<!-- JaCoCo will use the argLine set here. Test profiles override it. -->
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.test.use.network=false
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/jsr/**.java</exclude>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>com.hazelcast.test.annotation.QuickTest</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=true
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<useManifestOnlyJar>false</useManifestOnlyJar>
<useSystemClassLoader>true</useSystemClassLoader>
<groups>com.hazelcast.test.annotation.QuickTest</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- used by the PR builder -->
<id>parallelTest</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${maven.jacoco.plugin.version}</version>
<configuration>
<skip>false</skip>
<append>true</append>
<propertyName>jacocoArgLine</propertyName>
</configuration>
<executions>
<execution>
<id>prepare-unit-tests</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<!-- 1C means 1 process per cpu core -->
<forkCount>0.5C</forkCount>
<reuseForks>true</reuseForks>
<argLine>
${vmHeapSettings}
-ea
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=false
-Dhazelcast.test.multiple.jvm=true
-Dlog4j.configurationFile=log4j2.xml
-Dlog4j.skipJansi=true
${extraVmArgs}
${jacocoArgLine}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/jsr/**.java</exclude>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>
com.hazelcast.test.annotation.QuickTest AND
com.hazelcast.test.annotation.ParallelTest
</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
<systemPropertyVariables>
<multipleJVM>true</multipleJVM>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>singlejvm</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=false
-Dlog4j.configurationFile=log4j2.xml
-Dlog4j.skipJansi=true
${extraVmArgs}
${jacocoArgLine}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/jsr/**.java</exclude>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>com.hazelcast.test.annotation.QuickTest</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest,
com.hazelcast.test.annotation.ParallelTest
</excludedGroups>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>LOCAL</id>
<properties>
<vmHeapSettings>-Xms128m -Xmx1G -XX:MaxPermSize=128M</vmHeapSettings>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.test.use.network=false
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/jsr/**.java</exclude>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>com.hazelcast.test.annotation.QuickTest</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.test.use.network=false
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<useManifestOnlyJar>false</useManifestOnlyJar>
<useSystemClassLoader>true</useSystemClassLoader>
<groups>com.hazelcast.test.annotation.QuickTest</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>test-coverage-Local</id>
<properties>
<vmHeapSettings>-Xms128m -Xmx1G -XX:MaxPermSize=128M</vmHeapSettings>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${maven.cobertura.plugin.version}</version>
<configuration>
<instrumentation>
<ignores/>
<excludes/>
</instrumentation>
<check/>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<testFailureIgnore>true</testFailureIgnore>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=false
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<includes>
<include>**/YourTestFileHear.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${maven.cobertura.plugin.version}</version>
</plugin>
</plugins>
</reporting>
</profile>
<profile>
<id>test-coverage</id>
<properties>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=false
-Dhazelcast.operation.call.timeout.millis=120000
-Dhazelcast.graceful.shutdown.max.wait=240
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${maven.jacoco.plugin.version}</version>
<configuration>
<excludes>
<exclude>**DummyProperty**</exclude>
<exclude>**DummyEntity**</exclude>
<exclude>**test-hibernate**</exclude>
<exclude>**HibernateStatisticsTestSupport**</exclude>
<exclude>**HibernateTestSupport**</exclude>
<exclude>**RegionFactoryDefaultTest**</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<testFailureIgnore>true</testFailureIgnore>
<includes>
<include>**/*.java</include>
</includes>
<excludes>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>
com.hazelcast.test.annotation.QuickTest,
com.hazelcast.test.annotation.SlowTest
</groups>
<excludedGroups>
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=true
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<groups>
com.hazelcast.test.annotation.QuickTest,
com.hazelcast.test.annotation.SlowTest,
</groups>
<excludedGroups>
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
<useManifestOnlyJar>false</useManifestOnlyJar>
<useSystemClassLoader>true</useSystemClassLoader>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${maven.sonar.plugin.version}</version>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<properties>
<javadoc>true</javadoc>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven.gpg.plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<javaApiLinks>
<property>
<name>api_1.6</name>
<value>http://download.oracle.com/javase/1.6.0/docs/api/</value>
</property>
<property>
<name>api_1.7</name>
<value>http://download.oracle.com/javase/1.7.0/docs/api/</value>
</property>
</javaApiLinks>
<maxmemory>1024</maxmemory>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>release-repository</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>hazelcast-all</module>
</modules>
</profile>
<!-- unfortunately it isn't possible to chain profiles, so we need to duplicate the javadoc plugin -->
<profile>
<id>release-snapshot</id>
<properties>
<javadoc>true</javadoc>
</properties>
<modules>
<module>hazelcast-all</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<javaApiLinks>
<property>
<name>api_1.6</name>
<value>http://download.oracle.com/javase/1.6.0/docs/api/</value>
</property>
<property>
<name>api_1.7</name>
<value>http://download.oracle.com/javase/1.7.0/docs/api/</value>
</property>
</javaApiLinks>
<excludePackageNames>
*.impl:*.internal:*.operations:*.proxy:*.util:com.hazelcast.aws.security:
*.handlermigration:*.client.connection.nio:*.client.console:*.buildutils:
*.client.protocol.generator:*.cluster.client:*.concurrent:*.collection:
*.nio.ascii:*.nio.ssl:*.nio.tcp:*.partition.client:*.transaction.client:
*.core.server:com.hazelcast.instance:com.hazelcast.PlaceHolder
</excludePackageNames>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>zip</id>
<modules>
<module>hazelcast-all</module>
</modules>
</profile>
<profile>
<id>checkstyle</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven.checkstyle.plugin.version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
<configuration>
<configLocation>${main.basedir}/checkstyle/checkstyle.xml</configLocation>
<suppressionsLocation>${main.basedir}/checkstyle/suppressions.xml</suppressionsLocation>
<headerLocation>${main.basedir}/checkstyle/ClassHeader.txt</headerLocation>
<enableRSS>false</enableRSS>
<linkXRef>true</linkXRef>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<failOnViolation>true</failOnViolation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<enableRulesSummary>true</enableRulesSummary>
<propertyExpansion>main.basedir=${main.basedir}</propertyExpansion>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>spotbugs</id>
<build>
<plugins>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${maven.spotbugs.plugin.version}</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<failOnError>true</failOnError>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>nightly-build</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<parallel>none</parallel>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=false
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/**IT.java</exclude>
<exclude>**/jsr/**.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>
com.hazelcast.test.annotation.NightlyTest,
com.hazelcast.test.annotation.SlowTest
</groups>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=true
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<useManifestOnlyJar>false</useManifestOnlyJar>
<useSystemClassLoader>true</useSystemClassLoader>
<groups>
com.hazelcast.test.annotation.NightlyTest,
com.hazelcast.test.annotation.SlowTest
</groups>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>all-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<parallel>none</parallel>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=false
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/jsr/**.java</exclude>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>
com.hazelcast.test.annotation.QuickTest,
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</groups>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.logging.type=none
-Dhazelcast.test.use.network=true
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<useManifestOnlyJar>false</useManifestOnlyJar>
<useSystemClassLoader>true</useSystemClassLoader>
<groups>
com.hazelcast.test.annotation.QuickTest,
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</groups>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jdk-9</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<useFile>false</useFile>
<trimStackTrace>false</trimStackTrace>
<!--
Allow access to Operating system metrics:
open jdk.management/com.sun.management.internal
Avoid warnings caused by reflection in
SelectorOptimizer:
open java.base/sun.nio.ch
FilteringClassLoader:
open java.base/java.lang
TimedMemberStateFactoryHelper:
open java.management/sun.management
Powermock issue workaround (https://github.com/powermock/powermock/issues/905):
export java.xml/jdk.xml.internal
-->
<argLine>
${vmHeapSettings}
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.management/sun.management=ALL-UNNAMED
--add-exports java.xml/jdk.xml.internal=ALL-UNNAMED
--illegal-access=warn
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.test.use.network=false
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/jsr/**.java</exclude>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
<!--
An outdated PaxRunner used by the OSGi test prevents executing on Java 9+.
TODO: remove this exclude once we have a proper fix in the test class.
-->
<exclude>**/HazelcastOSGiIntegrationTest.java</exclude>
</excludes>
<groups>com.hazelcast.test.annotation.QuickTest</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest
</excludedGroups>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>modulepath-tests</module>
</modules>
</profile>
<profile>
<!-- same as default build (excludes Nightly & Slow tests), outputs serialized objects to a blob -->
<!-- for compatibility testing -->
<id>generate-compatibility-samples</id>
<properties>
<vmHeapSettings>-Xms128m -Xmx1G -XX:MaxPermSize=128M</vmHeapSettings>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration combine.self="override">
<properties>
<property>
<name>listener</name>
<value>com.hazelcast.test.compatibility.SamplingRunListener</value>
</property>
</properties>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<trimStackTrace>false</trimStackTrace>
<runOrder>failedfirst</runOrder>
<argLine>
${vmHeapSettings}
-Dhazelcast.phone.home.enabled=false
-Dhazelcast.mancenter.enabled=false
-Dhazelcast.test.use.network=false
-Dhazelcast.test.sample.serialized.objects=${target.dir}/serialized-objects-${project.version}-
-Dlog4j.skipJansi=true
${extraVmArgs}
</argLine>
<includes>
<include>**/**.java</include>
</includes>
<excludes>
<exclude>**/jsr/**.java</exclude>
<!-- code triggered by UserCodeDeploymentSmokeTest and OperationRunnerImplTest -->
<!-- casts to SerializationServiceV1 and fails when Node is configured with the -->
<!-- wrapper ClassRecordingSerializationService -->
<exclude>**/UserCodeDeploymentSmokeTest.java</exclude>
<exclude>**/OperationRunnerImplTest.java</exclude>
<exclude>**/**IT.java</exclude>
<exclude>**/mapreduce/**/*.java</exclude>
</excludes>
<groups>com.hazelcast.test.annotation.QuickTest</groups>
<excludedGroups>
com.hazelcast.test.annotation.SlowTest,
com.hazelcast.test.annotation.NightlyTest,
com.hazelcast.test.annotation.SerializationSamplesExcluded
</excludedGroups>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>release-repository</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>snapshot-repository</id>
<name>Maven2 Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>backup-repository</id>
<name>Maven Central (Backup)</name>
<url>http://repo2.maven.org/maven2/</url>
</repository>
<repository>
<id>snapshot-repository</id>
<name>Maven2 Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
<repository>
<id>release-repository</id>
<name>release repository</name>
<url>https://oss.sonatype.org/content/repositories/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>javax.cache</groupId>
<artifactId>cache-api</artifactId>
<version>${jsr107.api.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>${reflections.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>${jmh.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>${jmh.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j2.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>${findbugs.annotations.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${bytebuddy.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${bytebuddy.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.7.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>1.7.8</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>