Skip to content
Philip Helger edited this page May 27, 2020 · 2 revisions

Maven usage

Note: x.y.z always denotes the version you need. See Home for the most current version.

Add the following to your pom.xml to use this artifact:

<dependency>
  <groupId>com.helger.as2</groupId>
  <artifactId>as2-lib</artifactId>
  <version>x.y.z</version>
</dependency>

For the MongoDB partnership factory, add the following to your pom.xml:

<dependency>
  <groupId>com.helger.as2</groupId>
  <artifactId>as2-partnership-mongodb</artifactId>
  <version>x.y.z</version>
</dependency>

For the receive servlet, add the following to your pom.xml:

<dependency>
  <groupId>com.helger.as2</groupId>
  <artifactId>as2-servlet</artifactId>
  <version>x.y.z</version>
</dependency>

For the standalone socket server, add the following to your pom.xml:

<dependency>
  <groupId>com.helger.as2</groupId>
  <artifactId>as2-server</artifactId>
  <version>x.y.z</version>
</dependency>

Note: prior to v4.6.0 the Maven groupId was com.helger.

Usage as Maven BOM

Alternatively you can use the parent POM as a BOM to have all dependencies included "automagically". Please note, that this only works inside the <dependencyManagement> part of your pom.xml:

  <dependencyManagement>
    <dependencies>
...
      <dependency>
        <groupId>com.helger.as2</groupId>
        <artifactId>as2-lib-parent-pom</artifactId>
        <version>x.y.z</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
...
    </dependencies>
  </dependencyManagement>

Note: prior to v4.6.0 the Maven groupId was com.helger.

Clone this wiki locally