org.apache.maven.plugin.nar
Class NarManager
java.lang.Object
org.apache.maven.plugin.nar.NarManager
public class NarManager
- extends java.lang.Object
- Author:
- Mark Donszelmann (Mark.Donszelmann@gmail.com)
|
Constructor Summary |
NarManager(org.apache.maven.plugin.logging.Log log,
org.apache.maven.artifact.repository.ArtifactRepository repository,
org.apache.maven.project.MavenProject project,
java.lang.String architecture,
java.lang.String os,
Linker linker)
|
|
Method Summary |
void |
downloadAttachedNars(java.util.List narArtifacts,
java.util.List remoteRepositories,
org.apache.maven.artifact.resolver.ArtifactResolver resolver,
java.lang.String classifier)
|
java.util.List |
getAttachedNarDependencies(java.util.List narArtifacts)
|
java.util.List |
getAttachedNarDependencies(java.util.List narArtifacts,
AOL archOsLinker,
java.lang.String type)
Returns a list of all attached nar dependencies for a specific binding and "noarch", but not where "local" is
specified |
java.util.List |
getAttachedNarDependencies(java.util.List narArtifacts,
java.lang.String classifier)
|
java.util.List |
getAttachedNarDependencies(java.util.List narArtifacts,
java.lang.String[] classifiers)
|
java.util.Map |
getAttachedNarDependencyMap(java.lang.String scope)
Returns all NAR dependencies by type: noarch, static, dynamic, jni, plugin. |
java.util.List |
getNarDependencies(java.lang.String scope)
Returns dependencies which are dependent on NAR files (i.e. |
java.io.File |
getNarFile(org.apache.maven.artifact.Artifact dependency)
|
NarInfo |
getNarInfo(org.apache.maven.artifact.Artifact dependency)
|
void |
unpackAttachedNars(java.util.List narArtifacts,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
java.lang.String classifier,
java.lang.String os,
NarLayout layout,
java.io.File unpackDir)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NarManager
public NarManager(org.apache.maven.plugin.logging.Log log,
org.apache.maven.artifact.repository.ArtifactRepository repository,
org.apache.maven.project.MavenProject project,
java.lang.String architecture,
java.lang.String os,
Linker linker)
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
getNarDependencies
public final java.util.List getNarDependencies(java.lang.String scope)
throws org.apache.maven.plugin.MojoExecutionException
- Returns dependencies which are dependent on NAR files (i.e. contain NarInfo)
- Throws:
org.apache.maven.plugin.MojoExecutionException
getAttachedNarDependencyMap
public final java.util.Map getAttachedNarDependencyMap(java.lang.String scope)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Returns all NAR dependencies by type: noarch, static, dynamic, jni, plugin.
- Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
getAttachedNarDependencies
public final java.util.List getAttachedNarDependencies(java.util.List narArtifacts)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
getAttachedNarDependencies
public final java.util.List getAttachedNarDependencies(java.util.List narArtifacts,
java.lang.String classifier)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
getAttachedNarDependencies
public final java.util.List getAttachedNarDependencies(java.util.List narArtifacts,
java.lang.String[] classifiers)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
getAttachedNarDependencies
public final java.util.List getAttachedNarDependencies(java.util.List narArtifacts,
AOL archOsLinker,
java.lang.String type)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Returns a list of all attached nar dependencies for a specific binding and "noarch", but not where "local" is
specified
- Parameters:
scope - compile, test, runtime, ....aol - either a valid aol, noarch or null. In case of null both the default getAOL() and noarch dependencies
are returned.type - noarch, static, shared, jni, or null. In case of null the default binding found in narInfo is used.
- Returns:
-
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
getNarInfo
public final NarInfo getNarInfo(org.apache.maven.artifact.Artifact dependency)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getNarFile
public final java.io.File getNarFile(org.apache.maven.artifact.Artifact dependency)
throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
downloadAttachedNars
public final void downloadAttachedNars(java.util.List narArtifacts,
java.util.List remoteRepositories,
org.apache.maven.artifact.resolver.ArtifactResolver resolver,
java.lang.String classifier)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
unpackAttachedNars
public final void unpackAttachedNars(java.util.List narArtifacts,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
java.lang.String classifier,
java.lang.String os,
NarLayout layout,
java.io.File unpackDir)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.