Maven/Gradle dependencies

Last updated last month

Axon Framework consists of a number of modules that provide specific capabilities. Depending on the exact needs of your project, you will need to include one or more of these modules.

There are currently two ways of obtaining the module binaries: either download the binaries from our website or preferably configure a repository for your build system (Maven, Gradle).

Axon modules are available on Maven Central.

Main modules

Axon 'Main Modules' are the modules that have been thoroughly tested and are robust enough to use in demanding production environments. The maven groupId of all these modules is org.axonframework. Visit Maven Central Repository to copy coordinates for the version you need.

Note

The Axon Spring Boot Starter module is the quickest start in to an Axon project as it will retrieve all the required modules/dependencies transitively. Alternatively, you can manually select individual modules for a customized configuration.

Module

Artifact Id

Group Id

Maven Central

Axon Messaging

axon-messaging

org.axonframework

available

Axon Modeling

axon-modelling

org.axonframework

available

Axon Event Sourcing

axon-eventsourcing

org.axonframework

available

Axon Configuration

axon-configuration

org.axonframework

available

Axon Test

axon-test

org.axonframework

available

Axon Server Connector

axon-server-connector

org.axonframework

available

Axon Spring

axon-spring

org.axonframework

available

Axon Spring Boot Starter

axon-spring-boot-starter

org.axonframework

available

Axon Disruptor

axon-disruptor

org.axonframework

available

Axon Metrics

axon-metrics

org.axonframework

available

Axon CDI

axon-cdi

org.axonframework

available

Axon Legacy

axon-legacy

org.axonframework

available

Axon Messaging

This module contains all necessary components and building blocks to support command, event and query messaging.

Axon Modeling

This module contains the necessary components to create domain models, like Aggregates and Sagas.

Axon Event Sourcing

This module contains all necessary infrastructure components to support Event Sourcing Command and Query Models.

Axon Test

This module contains test fixtures that you can use to test Axon based components, such as your Command Handlers, Aggregates and Sagas. You typically do not need this module at runtime and will only need to be added to the classpath for running tests.

Axon Configuration

This module contains all the necessary components to configure an Axon application.

Axon Server Connector

This module provides infrastructure components that connect to Axon Server.

Axon Spring

This module allows Axon Framework components to be configured in the Spring Application context. It also provides a number of building block implementations specific to Spring Framework, such as an adapter for publishing and retrieving Axon Events on a Spring Messaging Channel.

Axon Spring Boot Starter

This module provides Spring Boot auto-configuration for your project. It is by far the easiest option to get started as it automatically configures all Axon components. It is explained in more details here.

Axon Disruptor

This module contains a specific CommandBus and Command Handling solution based on the Disruptor paradigm.

Axon Metrics

This module provides basic implementations based on Coda Hale to collect the monitoring information.

Axon CDI

This module provides support for Contexts and Dependency Injection (CDI) for the Java EE platform.

Axon Legacy

This module contains components that enable migration of older Axon projects to use the latest Axon version.

Extension modules

Besides main modules, there are several extension modules which complement Axon Framework. They address distribution concerns of Axon Framework towards non-Axon Server solutions. The maven groupId of these extensions starts with org.axonframework.extensions.*. Visit Maven Central Repository to copy coordinates for the version you need.

Module

Artifact Id

Group Id

Maven Central

Axon AMQP

axon-amqp

org.axonframework.extensions.amqp

available

Axon AMQP Spring Boot Starter

axon-amqp-spring-boot-starter

org.axonframework.extensions.amqp

available

Axon Kafka

axon-kafka

org.axonframework.extensions.kafka

available

Axon Kafka Spring Boot Starter

axon-kafka-spring-boot-starter

org.axonframework.extensions.kafka

available

Axon Spring Cloud

axon-springcloud

org.axonframework.extensions.springcloud

available

Axon Spring Cloud Spring Boot Starter

axon-springcloud-spring-boot-starter

org.axonframework.extensions.springcloud

available

Axon JGroups

axon-jgroups

org.axonframework.extensions.jgroups

available

Axon JGroups Spring Boot Starter

axon-jgroups-spring-boot-starter

org.axonframework.extensions.jgroups

available

Axon Mongo

axon-mongo

org.axonframework.extensions.mongo

available

Axon AMQP

This module provides components that allow you leverage an AMQP-based message broker as an Event Message distribution mechanism. This allows for guaranteed-delivery, even when the Event Handler node is temporarily unavailable.

Axon AMQP Spring Boot Starter

This module provides Spring auto-configuration on top of the axon-amqp module.

Axon Kafka

This module provides integration with Kafka for event distribution (do note that events are not stored in this scenario).

Axon Kafka Spring Boot Starter

This module provides Spring auto-configuration on top of the axon-kafka module.

Axon Spring Cloud

This module provides integration with Spring Cloud for command distribution.

Axon Spring Cloud Spring Boot Starter

This module provides Spring auto-configuration on top of the axon-springcloud module

Axon JGroups

This module provides integration with JGroups for command distribution.

Axon JGroups Spring Boot Starter

This module provides Spring auto-configuration on top of the axon-jgroups module

Axon Mongo

This module provides event and saga store implementations that store event streams and sagas in a MongoDB database. MongoDB is a document based NoSQL database.