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 String |
excludeArtifactIds
Comma separated list of Artifact names to exclude.
|
protected String |
excludeGroupIds
Comma separated list of GroupId Names to exclude.
|
protected String |
includeArtifactIds
Comma separated list of Artifact names to include.
|
protected String |
includeGroupIds
Comma separated list of GroupIds to include.
|
protected List |
remoteArtifactRepositories
Remote repositories which will be searched for nar attachments.
|
classesDirectory, classifiers, libraries, skip
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,
List<? extends Executable> libraries) |
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
getArchiverManager() |
protected abstract org.apache.maven.shared.artifact.filter.collection.ScopeFilter |
getArtifactScopeFilter()
Returns the artifacts which must be taken in account for the Mojo.
|
protected List<AttachedNarArtifact> |
getAttachedNarArtifacts(List<? extends Executable> libraries)
Returns the attached NAR Artifacts (AOL and noarch artifacts) from the NAR
dependencies artifacts of the project.
|
protected String |
getBinding(Executable exec,
NarArtifact dependency) |
protected String[] |
getBindings(List<? extends Executable> libraries,
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 |
unpackAttachedNars(List<AttachedNarArtifact> dependencies) |
execute, getAOL, getArchitecture, getBasedir, getJavah, getJavaHome, getLayout, getLibraries, getLibsName, getLinker, getMavenProject, getMsvc, getNarInfo, getOS, getOutput, getOutputDirectory, getTargetDirectory, getTestTargetDirectory, getTestUnpackDirectory, getUnpackDirectory, narExecute, validate
@Component(role=org.apache.maven.artifact.resolver.ArtifactResolver.class) protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
@Parameter(defaultValue="${project.remoteArtifactRepositories}", required=true, readonly=true) protected List remoteArtifactRepositories
@Parameter(property="excludeArtifactIds", defaultValue="") protected String excludeArtifactIds
@Parameter(property="includeArtifactIds", defaultValue="") protected String includeArtifactIds
@Parameter(property="excludeGroupIds", defaultValue="") protected String excludeGroupIds
@Parameter(property="includeGroupIds", defaultValue="") protected String includeGroupIds
@Component(role=org.codehaus.plexus.archiver.manager.ArchiverManager.class) protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
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 List<AttachedNarArtifact> getAllAttachedNarArtifacts(List<NarArtifact> narArtifacts, List<? extends Executable> libraries) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected final org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
protected abstract org.apache.maven.shared.artifact.filter.collection.ScopeFilter getArtifactScopeFilter()
protected List<AttachedNarArtifact> getAttachedNarArtifacts(List<? extends Executable> libraries) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
getArtifacts
protected String[] getBindings(List<? extends Executable> libraries, NarArtifact dependency) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
protected String getBinding(Executable exec, NarArtifact dependency) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
protected final org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
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
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 final List getRemoteRepositories()
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
Copyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.