Class AddToRepositoryMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.karaf.tooling.utils.MojoSupport
-
- org.apache.karaf.tooling.features.AbstractFeatureMojo
-
- org.apache.karaf.tooling.features.AddToRepositoryMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="features-add-to-repository", defaultPhase=COMPILE, requiresDependencyResolution=RUNTIME, threadSafe=true) public class AddToRepositoryMojo extends AbstractFeatureMojoAdd features to a repository directory
-
-
Field Summary
Fields Modifier and Type Field Description protected List<CopyFileBasedDescriptor>copyFileBasedDescriptorsprotected Filerepository-
Fields inherited from class org.apache.karaf.tooling.features.AbstractFeatureMojo
addTransitiveFeatures, descriptorArtifacts, descriptors, features, ignoreDependencyFlag, skipNonMavenProtocols
-
Fields inherited from class org.apache.karaf.tooling.utils.MojoSupport
artifactMetadataSource, artifactResolver, container, factory, localRepo, mavenSession, project, projectBuilder, projectHelper, remoteRepos, workDirectory
-
-
Constructor Summary
Constructors Constructor Description AddToRepositoryMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopy(org.apache.maven.artifact.Artifact artifact, File destRepository)voidexecute()-
Methods inherited from class org.apache.karaf.tooling.features.AbstractFeatureMojo
addFeatureRepo, addFeatures, addFeaturesDependencies, checkDoGarbageCollect, resolveArtifact, resolveFeatures, retrieveDescriptorsRecursively
-
Methods inherited from class org.apache.karaf.tooling.utils.MojoSupport
copy, createManagedVersionMap, getLocalRepoUrl, getProject, getProjectHelper, getWorkDirectory, resourceToArtifact, setMavenSession, translateFromMaven
-
-
-
-
Field Detail
-
repository
@Parameter(defaultValue="${project.build.directory}/features-repo") protected File repository
-
copyFileBasedDescriptors
@Parameter protected List<CopyFileBasedDescriptor> copyFileBasedDescriptors
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
copy
protected void copy(org.apache.maven.artifact.Artifact artifact, File destRepository)
-
-