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 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, dryRun, includesType, libraries, libsName, replay, skip, skipRanlibLOG_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, REPLAY_COMPILE_NAME, REPLAY_LINK_NAME, REPLAY_TEST_COMPILE_NAME, REPLAY_TEST_LINK_NAME| Constructor and Description |
|---|
AbstractDependencyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
dependencyTreeOrderStr(boolean pushDepsToLowestOrder,
boolean specifyDirectDeps)
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 HashSet<String> |
getDirectDepsSet(org.eclipse.aether.graph.DependencyNode rootNode)
Gets the set strings of the form "<groupId>:<artifactId>" representing the specified nodes direct dependencies (immediate children).
|
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() |
protected org.apache.maven.shared.dependency.graph.DependencyNode |
getRootNodeDependecyTree()
Get root node of the current Maven project Dependency tree generated by
maven.shared dependency graph builder.
|
protected org.eclipse.aether.graph.DependencyNode |
getVerboseDependencyTree()
Gets the project's full dependency tree prior to dependency mediation.
|
void |
unpackAttachedNars(List<AttachedNarArtifact> dependencies) |
createReplayDirs, execute, getAOL, getArchitecture, getBasedir, getIncludesType, getJavah, getJavaHome, getLayout, getLibraries, getLibsName, getLinker, getMavenProject, getMsvc, getNarInfo, getNARVersionInfo, getOS, getOutput, getOutputDirectory, getReplay, getTargetDirectory, getTestTargetDirectory, getTestUnpackDirectory, getUnpackDirectory, getWindowsMsvcDir, getWindowsMsvcVersion, getWindowsSdkDir, getWindowsSdkVersion, isDryRun, isSkipRanlib, narExecute, setDryRun, setReplay, 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 org.eclipse.aether.graph.DependencyNode getVerboseDependencyTree()
Root node of the projects verbose dependency tree.protected String dependencyTreeOrderStr(boolean pushDepsToLowestOrder, boolean specifyDirectDeps) throws org.apache.maven.plugin.MojoExecutionException
pushDepsToLowestOrder - when true enables linker re-ordering logic such that libraries
that are lower in the dependency hierarchy appear lower in the list, maximizing symbol resolution.Dependency tree string of comma separated list of groupId:artifactIdorg.apache.maven.plugin.MojoExecutionExceptionprotected HashSet<String> getDirectDepsSet(org.eclipse.aether.graph.DependencyNode rootNode)
rootNode - root node of the tree to fetch the direct dependencies from.HashSet of the form "<groupId>:<artifactId>" containing all direct dependencies of the parameter specified by rootNode.protected org.apache.maven.shared.dependency.graph.DependencyNode getRootNodeDependecyTree()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic final void downloadAttachedNars(List<AttachedNarArtifact> dependencies) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected 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.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptiongetArtifactsprotected String[] getBindings(List<? extends Executable> libraries, NarArtifact dependency) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected String getBinding(Executable exec, NarArtifact dependency) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected final org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
public final List<NarArtifact> getNarArtifacts() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic final NarInfo getNarInfo(org.apache.maven.artifact.Artifact dependency) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected final NarManager getNarManager() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2005–2020 NAR Maven Plugin developers. All rights reserved.