Class AxonVersionDetector

java.lang.Object
org.axonframework.update.detection.AxonVersionDetector

@Internal public final class AxonVersionDetector extends Object
Utility class to detect Axon Framework versions from the classpath. It scans for Maven's pom.properties files in the classpath and extracts the Axon Framework module versions. If an error occurs during detection, it logs the error and returns an empty list.

Will only detect Axon Framework modules that are part of the Axon Framework or AxonIQ ecosystem, as defined by the group IDs:

  • org.axonframework
  • io.axoniq

This class is not intended to be instantiated, and all methods are static.

Since:
5.0.0
Author:
Mitchell Herrijgers
  • Method Details

    • safeDetectAxonModules

      public static List<Artifact> safeDetectAxonModules()
      Detects Axon Framework modules in the classpath and returns their versions. If an error occurs during detection, it logs the error and returns an empty list.
      Returns:
      A list of detected Axon Framework modules with their versions.