public abstract class AbstractDependencyMojo extends AbstractNarMojo
限定符和类型 | 字段和说明 |
---|---|
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 org.apache.maven.shared.dependency.graph.DependencyGraphBuilder |
dependencyGraphBuilder
The dependency tree builder to use.
|
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.
|
protected org.apache.maven.shared.dependency.graph.DependencyNode |
rootNode
The computed dependency tree root node of the Maven project.
|
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
构造器和说明 |
---|
AbstractDependencyMojo() |
限定符和类型 | 方法和说明 |
---|---|
protected String |
dependencyTreeOrderStr()
Serializes the dependency tree of current maven project to a string of comma separated list
of groupId:artifactId traversing nodes in Level-Order way (also called BFS algorithm)
|
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. contain
NarInfo)
|
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
protected org.apache.maven.shared.dependency.graph.DependencyNode rootNode
@Component(hint="default") protected org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder
@Component(role=org.codehaus.plexus.archiver.manager.ArchiverManager.class) protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
protected String dependencyTreeOrderStr()
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-2017 NAR Maven Plugin developers. All Rights Reserved.