|
||||||||||
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 org.apache.maven.artifact.resolver.ArtifactCollector |
artifactCollector
Artifact collector, needed to resolve dependencies. |
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource
|
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory
Used to look up Artifacts in the remote repository. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
local
Location of the local repository. |
protected boolean |
outputAbsoluteArtifactFilename
Output absolute filename for resolved artifacts |
protected org.apache.maven.project.MavenProject |
project
POM |
protected java.util.List |
reactorProjects
Contains the full list of projects in the reactor. |
protected java.util.List |
remoteRepos
List of Remote Repositories used by the resolver |
protected org.apache.maven.artifact.resolver.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(java.io.File artifact,
java.io.File destFile)
Does the actual copy of the file and logging. |
org.codehaus.plexus.archiver.manager.ArchiverManager |
getArchiverManager()
|
org.apache.maven.artifact.resolver.ArtifactCollector |
getArtifactCollector()
|
org.apache.maven.artifact.metadata.ArtifactMetadataSource |
getArtifactMetadataSource()
|
org.apache.maven.artifact.factory.ArtifactFactory |
getFactory()
|
org.apache.maven.artifact.repository.ArtifactRepository |
getLocal()
|
org.apache.maven.plugin.logging.Log |
getLog()
|
org.apache.maven.project.MavenProject |
getProject()
|
java.util.List |
getRemoteRepos()
|
org.apache.maven.artifact.resolver.ArtifactResolver |
getResolver()
|
void |
setArchiverManager(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
|
void |
setArtifactCollector(org.apache.maven.artifact.resolver.ArtifactCollector theArtifactCollector)
|
void |
setArtifactMetadataSource(org.apache.maven.artifact.metadata.ArtifactMetadataSource theArtifactMetadataSource)
|
void |
setFactory(org.apache.maven.artifact.factory.ArtifactFactory factory)
|
void |
setLocal(org.apache.maven.artifact.repository.ArtifactRepository local)
|
void |
setRemoteRepos(java.util.List remoteRepos)
|
void |
setResolver(org.apache.maven.artifact.resolver.ArtifactResolver resolver)
|
protected void |
unpack(java.io.File file,
java.io.File location)
|
protected void |
unpack(java.io.File file,
java.io.File location,
java.lang.String includes,
java.lang.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 |
---|
protected org.apache.maven.artifact.factory.ArtifactFactory factory
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.artifact.resolver.ArtifactCollector artifactCollector
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
protected org.apache.maven.artifact.repository.ArtifactRepository local
protected java.util.List remoteRepos
protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
protected org.apache.maven.project.MavenProject project
protected java.util.List reactorProjects
public boolean silent
protected boolean outputAbsoluteArtifactFilename
Constructor Detail |
---|
public AbstractDependencyMojo()
Method Detail |
---|
public org.apache.maven.plugin.logging.Log getLog()
getLog
in interface org.apache.maven.plugin.Mojo
getLog
in class org.apache.maven.plugin.AbstractMojo
public org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
protected void copyFile(java.io.File artifact, java.io.File destFile) throws org.apache.maven.plugin.MojoExecutionException
artifact
- represents the file to copy.destFile
- file name of destination file.
org.apache.maven.plugin.MojoExecutionException
- with a message if an
error occurs.protected void unpack(java.io.File file, java.io.File location) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void unpack(java.io.File file, java.io.File location, java.lang.String includes, java.lang.String excludes) throws org.apache.maven.plugin.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
org.apache.maven.plugin.MojoExecutionException
public org.apache.maven.artifact.factory.ArtifactFactory getFactory()
public void setFactory(org.apache.maven.artifact.factory.ArtifactFactory factory)
factory
- The factory to set.public org.apache.maven.project.MavenProject getProject()
public org.apache.maven.artifact.repository.ArtifactRepository getLocal()
public void setLocal(org.apache.maven.artifact.repository.ArtifactRepository local)
local
- The local to set.public java.util.List getRemoteRepos()
public void setRemoteRepos(java.util.List remoteRepos)
remoteRepos
- The remoteRepos to set.public org.apache.maven.artifact.resolver.ArtifactResolver getResolver()
public void setResolver(org.apache.maven.artifact.resolver.ArtifactResolver resolver)
resolver
- The resolver to set.public void setArchiverManager(org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager)
archiverManager
- The archiverManager to set.public org.apache.maven.artifact.resolver.ArtifactCollector getArtifactCollector()
public void setArtifactCollector(org.apache.maven.artifact.resolver.ArtifactCollector theArtifactCollector)
theArtifactCollector
- The artifactCollector to
set.public org.apache.maven.artifact.metadata.ArtifactMetadataSource getArtifactMetadataSource()
public void setArtifactMetadataSource(org.apache.maven.artifact.metadata.ArtifactMetadataSource theArtifactMetadataSource)
theArtifactMetadataSource
- The
artifactMetadataSource to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |