JGroupsAndMaven

Accessing JGroups from mavenized builds

 

JGroups still uses an ant-based build, but it can be accessed from mavenized builds by way of its pom.

The following is a sample pom for JGroups, applicable for version 2.4.3.GA.

This pom is not used to build JGroups, but rather to simply describe its library dependencies so that mavenized

builds may consume JGroups and obtain all necessary libraries upon which JGroups depends.

 

<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>jgroups</groupId>
  <artifactId>jgroups</artifactId>
  <name>JGroups</name>
  <version>2.4.3.GA</version>
  <url>http://www.jgroups.org</url>
  
  <!-- specify the repository to get dependencies from -->
  <repositories>
    <repository>
      <id>jboss</id>
      <name>JBoss Inc. Repository</name>
      <url>http://repository.jboss.com/maven2/</url>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </releases> 
      <!-- don't enable snapshot artifacts from this repo -->
      <snapshots>
        <enabled>false</enabled>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
    </repository>
  </repositories>
  
  <dependencies>
    
    <!-- BouncyCastle encryption libs -->
    <dependency>
      <groupId>bouncycastle</groupId>
      <artifactId>bcprov-jdk14</artifactId>
      <version>117</version>
    </dependency>
    
    <!-- BeanShell java command interpreter -->
    <dependency>
      <groupId>beanshell</groupId>
      <artifactId>bsh</artifactId>
      <version>1.2b3</version>
    </dependency>
    
    <!-- commons-logging api -->
    <dependency>
      <groupId>apache-logging</groupId>
      <artifactId>commons-logging-api</artifactId>
      <version>1.0.3</version>
    </dependency>
    
    <!-- concurrency libs (only for jdk14) -->
    <dependency>
      <groupId>concurrent</groupId>
      <artifactId>concurrent</artifactId>
      <version>1.3.4</version>
    </dependency>
    
    <!-- JMS 1.02b interfaces -->
    <dependency>
      <groupId>javax.jms</groupId>
      <artifactId>jms</artifactId>
      <version>1.02b</version>
    </dependency>
    
    <!-- JMX remote interface (only for jdk14) -->
    <dependency>
      <groupId>javax.management</groupId>
      <artifactId>jmxri</artifactId>
      <version>1.2.1</version>
    </dependency>
    
    <!-- JUnit testing libs -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    
    <!-- log4j logging implementation -->
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.6</version>
    </dependency>
    
    <!-- xalan serialization libs -->
    <dependency>
      <groupId>apache-xalan</groupId>
      <artifactId>serializer</artifactId>
      <version>j_2.7.0</version>
    </dependency>
    
    <dependency>
      <groupId>apache-xalan</groupId>
      <artifactId>xalan</artifactId>
      <version>j_2.7.0</version>
    </dependency>
    
  </dependencies>
</project>