public abstract class AbstractDependencyMojo extends AbstractNarMojo
Modifier and Type | Field and Description |
---|---|
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
archiverManager
To look up Archiver/UnArchiver implementations
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
Artifact resolver, needed to download the attached nar files.
|
protected List |
remoteArtifactRepositories
Remote repositories which will be searched for nar attachments.
|
classesDirectory, classifiers, libraries
LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_VERBOSE, LOG_LEVEL_WARNING, NAR, NAR_AOL, NAR_EXTENSION, NAR_NO_ARCH, NAR_ROLE_HINT, NAR_TYPE
Constructor and Description |
---|
AbstractDependencyMojo() |
Modifier and Type | Method and Description |
---|---|
void |
downloadAttachedNars(List<AttachedNarArtifact> dependencies) |
List<AttachedNarArtifact> |
getAllAttachedNarArtifacts(List<NarArtifact> narArtifacts) |
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
getArchiverManager() |
protected List<org.apache.maven.artifact.Artifact> |
getArtifacts() |
protected String |
getBinding(NarArtifact dependency) |
protected org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository()
The plugin remote repositories declared in the pom.
|
List<NarArtifact> |
getNarArtifacts()
Returns dependencies which are dependent on NAR files (i.e.
|
NarInfo |
getNarInfo(org.apache.maven.artifact.Artifact dependency) |
protected NarManager |
getNarManager() |
protected List |
getRemoteRepositories() |
void |
narExecute() |
void |
unpackAttachedNars(List<AttachedNarArtifact> dependencies) |
execute, getAOL, getArchitecture, getBasedir, getJavah, getJavaHome, getLayout, getLibraries, getLinker, getMavenProject, getNarInfo, getOS, getOutput, getOutputDirectory, getTargetDirectory, getTestTargetDirectory, getTestUnpackDirectory, getUnpackDirectory, validate
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected List remoteArtifactRepositories
protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
protected final org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
protected final List getRemoteRepositories()
protected final org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
protected final NarManager getNarManager() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
protected List<org.apache.maven.artifact.Artifact> getArtifacts()
public final List<NarArtifact> getNarArtifacts() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public final NarInfo getNarInfo(org.apache.maven.artifact.Artifact dependency) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public final List<AttachedNarArtifact> getAllAttachedNarArtifacts(List<NarArtifact> narArtifacts) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected String getBinding(NarArtifact dependency) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
public final void downloadAttachedNars(List<AttachedNarArtifact> dependencies) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public final void unpackAttachedNars(List<AttachedNarArtifact> dependencies) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void narExecute() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
narExecute
in class AbstractNarMojo
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.