Class CoreExtensionUtils

java.lang.Object
org.codehaus.mojo.versions.utils.CoreExtensionUtils

public final class CoreExtensionUtils extends Object
Utilities for reading and handling core extensions.
Since:
2.15.0
Author:
Andrzej Jarmoniuk
  • Constructor Details

    • CoreExtensionUtils

      public CoreExtensionUtils()
  • Method Details

    • getCoreExtensions

      public static Stream<org.apache.maven.model.Extension> getCoreExtensions(org.apache.maven.project.MavenProject project) throws IOException, XMLStreamException
      Reads the core extensions (not build extensions) configured for the given project from the ${project}/.mvn/extensions.xml file.
      Parameters:
      project - MavenProject instance
      Returns:
      stream of core extensions defined in the ${project}/.mvn/extensions.xml file
      Throws:
      IOException - thrown if a file I/O operation fails
      XMLStreamException - thrown if the file cannot be parsed
      Since:
      2.15.0