Interface MavenPomParser


public interface MavenPomParser
Maven parser API to work with maven artifacts.
Since:
2.0.0
  • Method Details

    • getSourceDirectory

      String getSourceDirectory()
      Gets source directory declared in the pom.
      Returns:
      the source directory
    • getResourceDirectories

      List<String> getResourceDirectories()
      Gets resource directories declared in the pom.
      Returns:
      the resource directories
    • getModel

      MavenPomModel getModel()
      Gets MavenPomModel of the current pom.
      Returns:
      the MavenPomModel
    • getSharedLibraries

      List<SharedLibrary> getSharedLibraries()
      Gets shared libraries declared configured in the Mule plugin.
      Returns:
      the shared libraries
    • getDependencies

      List<BundleDependency> getDependencies()
      Gets the declared dependencies in the pom. Each BundleDependency will not contain the transitive dependencies.
      Returns:
      a list of the BundleDependency
    • getPomAdditionalPluginDependenciesForArtifacts

      Map<ArtifactCoordinates,AdditionalPluginDependencies> getPomAdditionalPluginDependenciesForArtifacts()
      Gets additional plugin dependencies configured in the Mule plugin. It returns a Map with an ArtifactCoordinates key representing an artifact. The values of the map is the AdditionalPluginDependencies for each artifact.
      Returns:
      the pom additional plugin dependencies
    • getProperties

      Properties getProperties()
      Gets properties declared in the pom.
      Returns:
      the properties
    • isMavenShadePluginConfigured

      boolean isMavenShadePluginConfigured()
      Searches the Maven org.apache.maven.model.Model for the . maven-shade-plugin would have to be configured in the pom directly and not inherited from a parent pom due to it is not supported by this implementation.
      Returns:
      true if found.