public abstract class AbstractMavenDeployableProjectModelBuilder extends AbstractDeployableProjectModelBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Map<BundleDescriptor,List<BundleDependency>> |
additionalPluginDependencies |
protected File |
deployableArtifactRepositoryFolder |
protected List<BundleDependency> |
deployableBundleDependencies |
protected List<org.mule.maven.client.api.model.BundleDependency> |
deployableMavenBundleDependencies |
protected org.mule.maven.client.api.model.MavenConfiguration |
mavenConfiguration |
protected Map<org.mule.tools.api.classloader.model.ArtifactCoordinates,List<org.mule.tools.api.classloader.model.Artifact>> |
pluginsArtifactDependencies |
protected Map<BundleDescriptor,List<BundleDependency>> |
pluginsBundleDependencies |
protected File |
projectFolder |
protected Set<BundleDescriptor> |
sharedDeployableBundleDescriptors |
CLASS_LOADER_MODEL_VERSION_110, CLASS_LOADER_MODEL_VERSION_120, CLASSLOADER_MODEL_JSON_DESCRIPTOR, CLASSLOADER_MODEL_JSON_DESCRIPTOR_LOCATION, CLASSLOADER_MODEL_JSON_PATCH_DESCRIPTOR, CLASSLOADER_MODEL_JSON_PATCH_DESCRIPTOR_LOCATION| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMavenDeployableProjectModelBuilder(org.mule.maven.client.api.model.MavenConfiguration mavenConfiguration,
File projectFolder) |
| Modifier and Type | Method and Description |
|---|---|
DeployableProjectModel |
build()
Creates a
DeployableProjectModel. |
protected BundleDescriptor |
buildBundleDescriptor(org.mule.tools.api.classloader.model.ArtifactCoordinates artifactCoordinates) |
protected abstract DeployableProjectModel |
doBuild(org.apache.maven.model.Model pomModel,
org.mule.tools.api.classloader.model.ArtifactCoordinates deployableArtifactCoordinates)
Effectively builds the
DeployableProjectModel with specific behaviour from the implementation. |
protected List<String> |
getAttribute(Map<String,Object> attributes,
String attribute) |
protected static org.mule.maven.client.api.model.MavenConfiguration |
getDefaultMavenConfiguration() |
protected Optional<org.mule.maven.client.api.MavenReactorResolver> |
getMavenReactorResolver()
Get the
MavenReactorResolver configured. |
protected abstract File |
getPomFromFolder(File projectFolder)
Retrieves the POM file from the deployable project's folder.
|
protected Map<org.mule.tools.api.classloader.model.ArtifactCoordinates,Supplier<org.apache.maven.model.Model>> |
getPomModels()
Get a
Map pointing to the Model of each artifact present in the map. |
protected <T> T |
getSimpleAttribute(Map<String,Object> attributes,
String attribute,
T defaultValue) |
protected abstract boolean |
isIncludeTestDependencies() |
defaultDeployableProjectModelBuilder, getClassLoaderModelDescriptor, isHeavyPackageprotected final org.mule.maven.client.api.model.MavenConfiguration mavenConfiguration
protected final File projectFolder
protected List<org.mule.maven.client.api.model.BundleDependency> deployableMavenBundleDependencies
protected List<BundleDependency> deployableBundleDependencies
protected Map<org.mule.tools.api.classloader.model.ArtifactCoordinates,List<org.mule.tools.api.classloader.model.Artifact>> pluginsArtifactDependencies
protected Set<BundleDescriptor> sharedDeployableBundleDescriptors
protected Map<BundleDescriptor,List<BundleDependency>> additionalPluginDependencies
protected Map<BundleDescriptor,List<BundleDependency>> pluginsBundleDependencies
protected File deployableArtifactRepositoryFolder
protected AbstractMavenDeployableProjectModelBuilder(org.mule.maven.client.api.model.MavenConfiguration mavenConfiguration,
File projectFolder)
protected static org.mule.maven.client.api.model.MavenConfiguration getDefaultMavenConfiguration()
public final DeployableProjectModel build()
DeployableProjectModelBuilderDeployableProjectModel.DeployableProjectModel representing the structure of a project.protected abstract DeployableProjectModel doBuild(org.apache.maven.model.Model pomModel, org.mule.tools.api.classloader.model.ArtifactCoordinates deployableArtifactCoordinates)
DeployableProjectModel with specific behaviour from the implementation.pomModel - the POM model.deployableArtifactCoordinates - artifact coordinates from the deployable.DeployableProjectModel.protected abstract File getPomFromFolder(File projectFolder)
projectFolder - the deployable project's folder.protected abstract boolean isIncludeTestDependencies()
DeployableProjectModel.protected final List<String> getAttribute(Map<String,Object> attributes, String attribute)
protected final <T> T getSimpleAttribute(Map<String,Object> attributes, String attribute, T defaultValue)
protected BundleDescriptor buildBundleDescriptor(org.mule.tools.api.classloader.model.ArtifactCoordinates artifactCoordinates)
protected Optional<org.mule.maven.client.api.MavenReactorResolver> getMavenReactorResolver()
MavenReactorResolver configured. If it is configured the DeployableDependencyResolver will look up
the dependencies also in this repository. If Optional.empty() it will look up in the repositories configured in the
system.Optional MavenReactorResolver.protected Map<org.mule.tools.api.classloader.model.ArtifactCoordinates,Supplier<org.apache.maven.model.Model>> getPomModels()
Map pointing to the Model of each artifact present in the map. It's used as cache to get the
Models of already loaded dependencies. We use this cache in AdditionalPluginDependenciesResolver to get the
Model of a dependency when a pom file is not available but the model can be generated from other available info.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.