Package org.codehaus.mojo.versions.utils
Class CoreExtensionUtils
java.lang.Object
org.codehaus.mojo.versions.utils.CoreExtensionUtils
Utilities for reading and handling core extensions.
- Since:
- 2.15.0
- Author:
- Andrzej Jarmoniuk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<org.apache.maven.model.Extension> getCoreExtensions(org.apache.maven.project.MavenProject project) Reads the core extensions (not build extensions) configured for the given project from the${project}/.mvn/extensions.xmlfile.
-
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.xmlfile.- Parameters:
project-MavenProjectinstance- Returns:
- stream of core extensions defined in the
${project}/.mvn/extensions.xmlfile - Throws:
IOException- thrown if a file I/O operation failsXMLStreamException- thrown if the file cannot be parsed- Since:
- 2.15.0
-