jgroups-raft
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.jgroups</groupId> <artifactId>jgroups-raft</artifactId> <version>1.0.13.Final</version> </dependency>
<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>org.jgroups</groupId> <artifactId>jgroups-raft</artifactId> <packaging>jar</packaging> <name>jgroups-raft</name> <version>1.0.13.Final</version> <url>https://github.com/jgroups-extras/jgroups-raft</url> <description>JGroups RAFT implementation</description> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <maven.compiler.release>11</maven.compiler.release> <!-- nexus-staging-maven-plugin --> <autoReleaseAfterClose>true</autoReleaseAfterClose> <nexus.server.id>jboss-releases-repository</nexus.server.id> <nexus.server.url>https://repository.jboss.org/nexus</nexus.server.url> <nexus.snapshot.server.id>jboss-snapshots-repository</nexus.snapshot.server.id> <nexus.snapshot.server.url>https://repository.jboss.org/nexus/content/repositories/snapshots/</nexus.snapshot.server.url> <!-- Dependencies versions --> <testng.version>7.10.1</testng.version> <assertj.version>3.25.3</assertj.version> <jgroups.version>5.3.4.Final</jgroups.version> <leveldbjni.version>1.8</leveldbjni.version> <log4j.version>2.23.1</log4j.version> <jmh.version>1.37</jmh.version> <mashona.version>1.1.0</mashona.version> <conf.dir>${project.basedir}/conf</conf.dir> <tmp.dir>${project.basedir}/tmp</tmp.dir> <!-- test properties --> <ansi.strip /> <jgroups.tests.parallel.threads>2</jgroups.tests.parallel.threads> <defaultTestNGGroups>functional</defaultTestNGGroups> <defaultExcludedTestNGGroups>broken</defaultExcludedTestNGGroups> <testNGListeners>org.jgroups.tests.utils.JUnitXMLReporter</testNGListeners> <jgroups.bind_addr>localhost</jgroups.bind_addr> <jgroups.tcpping.initial_hosts>localhost[7800],localhost[7801]</jgroups.tcpping.initial_hosts> <jgroups.tunnel.gossip_router_hosts>localhost[12001]</jgroups.tunnel.gossip_router_hosts> <jgroups.udp.mcast_addr>225.5.5.5</jgroups.udp.mcast_addr> <jgroups.udp.mcast_port>45588</jgroups.udp.mcast_port> <jgroups.udp.ip_ttl>5</jgroups.udp.ip_ttl> <jgroups.useIPv4>true</jgroups.useIPv4> <jgroups.useIPv6>false</jgroups.useIPv6> <trace>false</trace> <jgroups.tests.jvmargs> -Djgroups.udp.ip_ttl=0 -Djgroups.tcpping.initial_hosts=${jgroups.tcpping.initial_hosts} -Djgroups.tunnel.gossip_router_hosts=${jgroups.tunnel.gossip_router_hosts} -Dtests.tmp.dir=${tmp.dir} -Dlog4j.configuration=file:${conf.dir}/log4j.properties -Dlog4j.configurationFile=${conf.dir}/log4j2-test.xml -Djava.net.preferIPv4Stack=${jgroups.useIPv4} -Djava.net.preferIPv6Addresses=${jgroups.useIPv6} -Dorg.jgrops.test.trace=${trace} -Xms400M -Xmx800M </jgroups.tests.jvmargs> <!-- Plugin magic --> <!-- Latest AntRun plugin uses an old version of Ant, which fails because of SecurityManager --> <!-- Once they release with Ant >= 1.0.14 we can remove this. --> <ant.securitymanager.usage.warn>true</ant.securitymanager.usage.warn> <antrun.ant.version>1.10.14</antrun.ant.version> </properties> <organization> <name>JBoss, a division of Red Hat</name> <url>http://www.jboss.org</url> </organization> <developers> <developer> <name>José Bolina</name> <email>jbolina@redhat.com</email> </developer> <developer> <name>Bela Ban</name> <email>bban@redhat.com</email> </developer> <developer> <name>Pedro Ruivo</name> <email>pruivo@redhat.com</email> </developer> <developer> <name>Francesco Nigro</name> <email>fnigro@redhat.com</email> </developer> <developer> <name>Ugo Landini</name> <email>ugo.landini@gmail.com</email> </developer> <developer> <name>Fabio Marinelli</name> <email>f.marinelli@gmail.com</email> </developer> </developers> <licenses> <license> <name>Apache License 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> </license> </licenses> <scm> <connection>scm:git:git://github.com/jgroups-extras/jgroups-raft.git</connection> <developerConnection>scm:git:ssh://git@github.com/jgroups-extras/jgroups-raft.git</developerConnection> <url>https://github.com/jgroups-extras/jgroups-raft</url> <tag>jgroups-raft-1.0.13.Final</tag> </scm> <issueManagement> <system>GitHub</system> <url>https://github.com/jgroups-extras/jgroups-raft/issues</url> </issueManagement> <distributionManagement> <repository> <id>${nexus.server.id}</id> <name>JBoss Releases Repository</name> <url>${nexus.server.url}</url> </repository> <snapshotRepository> <id>${nexus.snapshot.server.id}</id> <url>${nexus.snapshot.server.url}</url> </snapshotRepository> </distributionManagement> <prerequisites> <maven>3.0.4</maven> </prerequisites> <repositories> <repository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>interval:120</updatePolicy> </snapshots> </repository> <repository> <id>jboss-snapshots-repository</id> <name>JBoss Nexus snapshots repository</name> <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url> <layout>default</layout> <releases> <enabled>false</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>interval:120</updatePolicy> </snapshots> </repository> </repositories> <dependencies> <dependency> <groupId>org.jgroups</groupId> <artifactId>jgroups</artifactId> <version>${jgroups.version}</version> </dependency> <dependency> <groupId>org.fusesource.leveldbjni</groupId> <artifactId>leveldbjni-all</artifactId> <version>${leveldbjni.version}</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>${log4j.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>${log4j.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>net.jcip</groupId> <artifactId>jcip-annotations</artifactId> <version>1.0</version> <optional>true</optional> </dependency> <dependency> <groupId>io.mashona</groupId> <artifactId>mashona-logwriting</artifactId> <version>${mashona.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.hdrhistogram</groupId> <artifactId>HdrHistogram</artifactId> <version>2.1.12</version> <optional>true</optional> </dependency> <!-- Test dependencies --> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>${testng.version}</version> <scope>test</scope> </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.assertj</groupId> <artifactId>assertj-core</artifactId> <version>${assertj.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <sourceDirectory>src</sourceDirectory> <resources> <resource> <directory>conf</directory> <includes> <include>*.xml</include> <include>jg-messages*.properties</include> </includes> <excludes> <exclude>*-service.xml</exclude> </excludes> </resource> <resource> <directory>${project.build.directory}/schema</directory> </resource> <resource> <directory>${project.basedir}</directory> <includes> <include>INSTALL.html</include> <include>LICENSE</include> <include>README</include> </includes> </resource> <resource> <directory>${project.basedir}/lib</directory> <includes> <include>licenses/thirdparty*</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> <extensions>true</extensions> <configuration> <!-- See configuration details at http://books.sonatype.com/nexus-book/reference/staging-deployment.html --> <nexusUrl>${nexus.server.url}</nexusUrl> <serverId>${nexus.server.id}</serverId> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>11</source> <target>11</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.4.1</version> <executions> <execution> <id>enforce-java</id> <goals> <goal>enforce</goal> </goals> </execution> </executions> <configuration> <rules> <requireJavaVersion> <!-- require JDK 1.7 to run the build --> <version>[11,)</version> </requireJavaVersion> <requireMavenVersion> <version>3.0.4</version> </requireMavenVersion> </rules> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-test-source</id> <phase>validate</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>tests/junit-functional</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>compile</id> <phase>generate-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <property name="compile_classpath" refid="maven.compile.classpath" /> <property name="plugin_classpath" refid="maven.plugin.classpath" /> <delete dir="${project.build.directory}/schema" failonerror="false" /> <mkdir dir="${project.build.directory}/schema" /> <java classname="org.jgroups.util.XMLSchemaGenerator"> <classpath> <pathelement path="${compile_classpath}" /> <pathelement path="${plugin_classpath}" /> </classpath> <arg line="-o ${project.build.directory}/schema" /> </java> </target> </configuration> </execution> </executions> </plugin> <!-- Make sure we generate src jars too --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <inherited>true</inherited> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <configuration> <arguments>-DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true</arguments> <preparationGoals>clean</preparationGoals> </configuration> </plugin> <!-- Disable default tests: they won't run since they are lacking configuration --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <reportsDirectory>${tmp.dir}/test-results/xml</reportsDirectory> <parallel>classes</parallel> <threadCount>${jgroups.tests.parallel.threads}</threadCount> <forkCount>1</forkCount> <reuseForks>true</reuseForks> <groups>${defaultTestNGGroups}</groups> <excludedGroups>${defaultExcludedTestNGGroups}</excludedGroups> <useFile>false</useFile> <systemPropertyVariables> <INITIAL_MCAST_ADDR>${jgroups.udp.mcast_addr}</INITIAL_MCAST_ADDR> <INITIAL_MCAST_PORT>23000</INITIAL_MCAST_PORT> <INITIAL_TCP_PORT>23000</INITIAL_TCP_PORT> <tcp.recv_buf_size>200000</tcp.recv_buf_size> <tcp.send_buf_size>64000</tcp.send_buf_size> <ansi.strip>${ansi.strip}</ansi.strip> </systemPropertyVariables> <trimStackTrace>false</trimStackTrace> <properties> <usedefaultlisteners>false</usedefaultlisteners> <listener>${testNGListeners}</listener> </properties> <argLine>${jgroups.tests.jvmargs} -Djdk.attach.allowAttachSelf=true</argLine> <!-- Use TCP for plugin <-> fork JVM communication --> <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" /> <!-- Disable modular classpath --> <useModulePath>false</useModulePath> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <configuration> <linkXRef>true</linkXRef> <outputDirectory>${tmp.dir}/html</outputDirectory> <reportsDirectories>${tmp.dir}/test-results/xml/functional</reportsDirectories> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>prepare-package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/libs</outputDirectory> <includeScope>test</includeScope> </configuration> </execution> </executions> </plugin> </plugins> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.1.0</version> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <version>${antrun.ant.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>3.3.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.12.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>3.1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>3.1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.3.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>3.2.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>3.2.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.6.1</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.5.0</version> </plugin> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <versionRange>[1.3,)</versionRange> <goals> <goal>run</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build> <profiles> <profile> <!-- Profile to generate the manual. --> <id>manual</id> <properties> <skipTests>true</skipTests> </properties> <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>manual</id> <!-- We use the PropsToAsciidoc to generate the adoc file. --> <!-- We need to have the compiled classes before generating the manual. --> <phase>compile</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <property name="compile_classpath" refid="maven.compile.classpath" /> <property name="plugin_classpath" refid="maven.plugin.classpath" /> <property name="doc.dir" value="${basedir}/doc" /> <property name="manual.dir" value="${basedir}/doc/manual" /> <property name="protocols.adoc" value="${manual.dir}/protocols-template.adoc" /> <echo message="Building manual from asciidoc ..." /> <!-- Generate the properties tables for all protocols. --> <echo message="Replacing variables in ${protocols.adoc}" /> <java classname="org.jgroups.raft.util.PropsToAsciidoc"> <classpath> <pathelement path="${compile_classpath}" /> <pathelement path="${plugin_classpath}" /> </classpath> <arg value="${protocols.adoc}" /> </java> <!-- Use asciidoctor to generate the manual. --> <!-- We utilize the asciidoctor-diagram extension to generate ditaa images. --> <mkdir dir="${manual.dir}/build" /> <echo message="Generating index.html in ${manual.dir}/build" /> <exec executable="asciidoctor" dir="${manual.dir}"> <arg line="-r asciidoctor-diagram -n -a source-highlighter=highlightjs -a stylesheet=${doc.dir}/stylesheets/asciidoctor.css -a icons -o ${manual.dir}/build/index.html manual.adoc" /> </exec> <!-- Copy assets to the build directory. --> <copy todir="${manual.dir}/build/images"> <fileset dir="${manual.dir}/images"> <include name="**/*" /> </fileset> </copy> <copy todir="${manual.dir}/build"> <fileset dir="${doc.dir}/stylesheets"> <include name="*.css" /> </fileset> </copy> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>