Package org.mule.maven.pom.parser.api
Interface MavenPomParser
public interface MavenPomParser
Maven parser API to work with maven artifacts.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the declared dependencies in the pom.getModel()GetsMavenPomModelof the current pom.Gets additional plugin dependencies configured in the Mule plugin.Gets properties declared in the pom.Gets resource directories declared in the pom.Gets shared libraries declared configured in the Mule plugin.Gets source directory declared in the pom.booleanSearches the Mavenorg.apache.maven.model.Modelfor the .
-
Method Details
-
getSourceDirectory
String getSourceDirectory()Gets source directory declared in the pom.- Returns:
- the source directory
-
getResourceDirectories
Gets resource directories declared in the pom.- Returns:
- the resource directories
-
getModel
MavenPomModel getModel()GetsMavenPomModelof the current pom.- Returns:
- the
MavenPomModel
-
getDependencies
List<BundleDependency> getDependencies()Gets the declared dependencies in the pom. EachBundleDependencywill 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 aMapwith anArtifactCoordinateskey representing an artifact. The values of the map is theAdditionalPluginDependenciesfor 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 Mavenorg.apache.maven.model.Modelfor 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.
-