|
||||||||||
| 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 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. |
protected boolean |
useJvmChmod
will use the jvm chmod, this is available for user and all level group level will be ignored |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractDependencyMojo()
|
|
| 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 ArchiverManager archiverManager
@Parameter(property="dependency.useJvmChmod",
defaultValue="true")
protected boolean useJvmChmod
will use the jvm chmod, this is available for user and all level group level will be ignored
since 2.6 is on by default
@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 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(Artifact artifact,
File location)
throws MojoExecutionException
MojoExecutionException
protected void unpack(Artifact artifact,
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(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.public boolean isUseJvmChmod()
public void setUseJvmChmod(boolean useJvmChmod)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||