public class CopyDependenciesMojo extends AbstractFromDependenciesMojo
Modifier and Type | Field and Description |
---|---|
protected org.apache.maven.artifact.installer.ArtifactInstaller |
installer |
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory |
repositoryFactory |
copyPom, failOnMissingClassifierArtifact, outputDirectory, stripVersion, useRepositoryLayout, useSubDirectoryPerArtifact, useSubDirectoryPerScope, useSubDirectoryPerType
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, type
archiverManager, artifactCollector, artifactMetadataSource, factory, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent
Constructor and Description |
---|
CopyDependenciesMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyArtifact(org.apache.maven.artifact.Artifact artifact,
boolean removeVersion,
boolean prependGroupId)
Copies the Artifact after building the destination file name if
overridden.
|
void |
copyPoms(java.io.File destDir,
java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
boolean removeVersion)
Copy the pom files associated with the artifacts.
|
void |
execute()
Main entry into mojo.
|
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter |
getMarkedArtifactFilter() |
protected org.apache.maven.artifact.Artifact |
getResolvedPomArtifact(org.apache.maven.artifact.Artifact artifact) |
getOutputDirectory, isCopyPom, isFailOnMissingClassifierArtifact, isStripVersion, isUseRepositoryLayout, isUseSubDirectoryPerArtifact, isUseSubDirectoryPerScope, isUseSubDirectoryPerType, setCopyPom, setFailOnMissingClassifierArtifact, setOutputDirectory, setStripVersion, setUseRepositoryLayout, setUseSubDirectoryPerArtifact, setUseSubDirectoryPerScope, setUseSubDirectoryPerType
filterMarkedDependencies, getClassifierTranslatedDependencies, getDependencySets, getMarkersDirectory, getResolvedDependencies, isPrependGroupId, setMarkersDirectory, setPrependGroupId
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, unpack, unpack
protected org.apache.maven.artifact.installer.ArtifactInstaller installer
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory repositoryFactory
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.#getDependencies
,
#copyArtifact(Artifact, boolean)
protected void copyArtifact(org.apache.maven.artifact.Artifact artifact, boolean removeVersion, boolean prependGroupId) throws org.apache.maven.plugin.MojoExecutionException
artifact
- representing the object to be copied.removeVersion
- specifies if the version should be removed from the file name
when copying.prependGroupId
- specifies if the groupId should be prepend to the file while copying.org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.DependencyUtil#copyFile(File, File, Log)
,
DependencyUtil.getFormattedFileName(Artifact, boolean)
public void copyPoms(java.io.File destDir, java.util.Set<org.apache.maven.artifact.Artifact> artifacts, boolean removeVersion) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.artifact.Artifact getResolvedPomArtifact(org.apache.maven.artifact.Artifact artifact)
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
getMarkedArtifactFilter
in class AbstractDependencyFilterMojo
Copyright © 2013. All Rights Reserved.