|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.dependency.AbstractDependencyMojo
public abstract class AbstractDependencyMojo
| Field Summary | |
|---|---|
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
archiverManager
To look up Archiver/UnArchiver implementations |
protected ArtifactCollector |
artifactCollector
Artifact collector, needed to resolve dependencies. |
protected ArtifactMetadataSource |
artifactMetadataSource
|
protected ArtifactFactory |
factory
Used to look up Artifacts in the remote repository. |
protected boolean |
outputAbsoluteArtifactFilename
Output absolute filename for resolved artifacts |
protected MavenProject |
project
POM |
protected List<MavenProject> |
reactorProjects
Contains the full list of projects in the reactor. |
protected List<ArtifactRepository> |
remoteRepos
List of Remote Repositories used by the resolver |
protected ArtifactResolver |
resolver
Used to look up Artifacts in the remote repository. |
boolean |
silent
If the plugin should be silent. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractDependencyMojo()
|
|
| Method Summary | |
|---|---|
protected void |
copyFile(File artifact,
File destFile)
Does the actual copy of the file and logging. |
org.codehaus.plexus.archiver.manager.ArchiverManager |
getArchiverManager()
|
ArtifactCollector |
getArtifactCollector()
|
ArtifactMetadataSource |
getArtifactMetadataSource()
|
ArtifactFactory |
getFactory()
|
protected ArtifactRepository |
getLocal()
|
Log |
getLog()
|
MavenProject |
getProject()
|
List<ArtifactRepository> |
getRemoteRepos()
|
ArtifactResolver |
getResolver()
|
void |
setArchiverManager(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
|
void |
setArtifactCollector(ArtifactCollector theArtifactCollector)
|
void |
setArtifactMetadataSource(ArtifactMetadataSource theArtifactMetadataSource)
|
void |
setFactory(ArtifactFactory factory)
|
void |
setLocal(ArtifactRepository local)
|
void |
setRemoteRepos(List<ArtifactRepository> remoteRepos)
|
void |
setResolver(ArtifactResolver resolver)
|
protected void |
unpack(File file,
File location)
|
protected void |
unpack(File file,
File location,
String includes,
String excludes)
Unpacks the archive file. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
@Component protected ArtifactFactory factory
@Component protected ArtifactResolver resolver
@Component(role=org.apache.maven.artifact.resolver.ArtifactCollector.class) protected ArtifactCollector artifactCollector
@Component(role=org.apache.maven.artifact.metadata.ArtifactMetadataSource.class,
hint="maven")
protected ArtifactMetadataSource artifactMetadataSource
@Parameter(defaultValue="${project.remoteArtifactRepositories}",
readonly=true,
required=true)
protected List<ArtifactRepository> remoteRepos
@Component protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
@Component protected MavenProject project
@Parameter(defaultValue="${reactorProjects}")
protected List<MavenProject> reactorProjects
@Parameter(property="silent",
defaultValue="false")
public boolean silent
@Parameter(property="outputAbsoluteArtifactFilename",
defaultValue="false")
protected boolean outputAbsoluteArtifactFilename
| Constructor Detail |
|---|
public AbstractDependencyMojo()
| Method Detail |
|---|
public Log getLog()
getLog in interface MojogetLog in class AbstractMojopublic org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
protected void copyFile(File artifact,
File destFile)
throws MojoExecutionException
artifact - represents the file to copy.destFile - file name of destination file.
MojoExecutionException - with a message if an
error occurs.
protected void unpack(File file,
File location)
throws MojoExecutionException
MojoExecutionException
protected void unpack(File file,
File location,
String includes,
String excludes)
throws MojoExecutionException
file - File to be unpacked.location - Location where to put the unpacked files.includes - Comma separated list of file patterns to include i.e. **/.xml,
**/*.propertiesexcludes - Comma separated list of file patterns to exclude i.e. **/*.xml,
**/*.properties
MojoExecutionExceptionpublic ArtifactFactory getFactory()
public void setFactory(ArtifactFactory factory)
factory - The factory to set.public MavenProject getProject()
protected ArtifactRepository getLocal()
public void setLocal(ArtifactRepository local)
local - The local to set.public List<ArtifactRepository> getRemoteRepos()
public void setRemoteRepos(List<ArtifactRepository> remoteRepos)
remoteRepos - The remoteRepos to set.public ArtifactResolver getResolver()
public void setResolver(ArtifactResolver resolver)
resolver - The resolver to set.public void setArchiverManager(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
archiverManager - The archiverManager to set.public ArtifactCollector getArtifactCollector()
public void setArtifactCollector(ArtifactCollector theArtifactCollector)
theArtifactCollector - The artifactCollector to set.public ArtifactMetadataSource getArtifactMetadataSource()
public void setArtifactMetadataSource(ArtifactMetadataSource theArtifactMetadataSource)
theArtifactMetadataSource - The artifactMetadataSource to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||