public abstract class AbstractFeatureMojo extends MojoSupport
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addTransitiveFeatures |
protected Set<org.apache.maven.artifact.Artifact> |
descriptorArtifacts |
protected List<String> |
descriptors |
protected List<String> |
features |
protected boolean |
ignoreDependencyFlag
Ignore the dependency flag on the bundles in the features XML
|
protected boolean |
skipNonMavenProtocols |
artifactMetadataSource, artifactResolver, container, factory, localRepo, mavenSession, project, projectBuilder, projectHelper, remoteRepos, workDirectory| Constructor and Description |
|---|
AbstractFeatureMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFeatureRepo(String featureUrl) |
protected void |
addFeatures(List<String> featureNames,
Set<org.apache.karaf.features.internal.model.Feature> features,
Map<String,org.apache.karaf.features.internal.model.Feature> featuresMap,
boolean transitive)
Populate the features by traversing the listed features and their
dependencies if transitive is true
|
protected void |
addFeaturesDependencies(List<org.apache.karaf.features.internal.model.Dependency> featureNames,
Set<org.apache.karaf.features.internal.model.Feature> features,
Map<String,org.apache.karaf.features.internal.model.Feature> featuresMap,
boolean transitive) |
protected void |
checkDoGarbageCollect()
Maven ArtifactResolver leaves file handles around so need to clean up
or we will run out of file descriptors.
|
protected void |
resolveArtifact(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos)
Resolves and copies the given artifact to the repository path.
|
protected Set<org.apache.karaf.features.internal.model.Feature> |
resolveFeatures() |
protected void |
retrieveDescriptorsRecursively(String uri,
Set<String> bundles,
Map<String,org.apache.karaf.features.internal.model.Feature> featuresMap) |
copy, createManagedVersionMap, getLocalRepoUrl, getProject, getProjectHelper, getWorkDirectory, resourceToArtifact, setMavenSession, translateFromMavengetLog, getPluginContext, setLog, setPluginContextprotected Set<org.apache.maven.artifact.Artifact> descriptorArtifacts
@Parameter protected boolean addTransitiveFeatures
@Parameter protected boolean skipNonMavenProtocols
@Parameter(defaultValue="false") protected boolean ignoreDependencyFlag
protected void addFeatureRepo(String featureUrl) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void retrieveDescriptorsRecursively(String uri, Set<String> bundles, Map<String,org.apache.karaf.features.internal.model.Feature> featuresMap)
protected void resolveArtifact(org.apache.maven.artifact.Artifact artifact,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos)
artifact - The artifact.remoteRepos - The List of remote repositories to use for artifact resolution.protected void addFeatures(List<String> featureNames, Set<org.apache.karaf.features.internal.model.Feature> features, Map<String,org.apache.karaf.features.internal.model.Feature> featuresMap, boolean transitive)
protected void addFeaturesDependencies(List<org.apache.karaf.features.internal.model.Dependency> featureNames, Set<org.apache.karaf.features.internal.model.Feature> features, Map<String,org.apache.karaf.features.internal.model.Feature> featuresMap, boolean transitive)
protected Set<org.apache.karaf.features.internal.model.Feature> resolveFeatures() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void checkDoGarbageCollect()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.