public class NarManager extends Object
| Constructor and Description |
|---|
NarManager(org.apache.maven.plugin.logging.Log log,
org.apache.maven.artifact.repository.ArtifactRepository repository,
org.apache.maven.project.MavenProject project,
String architecture,
String os,
Linker linker) |
| Modifier and Type | Method and Description |
|---|---|
void |
downloadAttachedNars(List narArtifacts,
List remoteRepositories,
org.apache.maven.artifact.resolver.ArtifactResolver resolver,
String classifier) |
List |
getAttachedNarDependencies(List narArtifacts) |
List |
getAttachedNarDependencies(List narArtifacts,
AOL archOsLinker,
String type)
Returns a list of all attached nar dependencies for a specific binding and
"noarch", but not where "local" is
specified
|
List |
getAttachedNarDependencies(List narArtifacts,
String classifier) |
List |
getAttachedNarDependencies(List narArtifacts,
String[] classifiers) |
File |
getNarFile(org.apache.maven.artifact.Artifact dependency) |
NarInfo |
getNarInfo(org.apache.maven.artifact.Artifact dependency) |
void |
unpackAttachedNars(List narArtifacts,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
String classifier,
String os,
NarLayout layout,
File unpackDir) |
public NarManager(org.apache.maven.plugin.logging.Log log,
org.apache.maven.artifact.repository.ArtifactRepository repository,
org.apache.maven.project.MavenProject project,
String architecture,
String os,
Linker linker)
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionpublic final void downloadAttachedNars(List narArtifacts, List remoteRepositories, org.apache.maven.artifact.resolver.ArtifactResolver resolver, String classifier) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic final List getAttachedNarDependencies(List narArtifacts) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic final List getAttachedNarDependencies(List narArtifacts, AOL archOsLinker, String type) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
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.org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic final List getAttachedNarDependencies(List narArtifacts, String classifier) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic final List getAttachedNarDependencies(List narArtifacts, String[] classifiers) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic final File getNarFile(org.apache.maven.artifact.Artifact dependency) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionpublic final NarInfo getNarInfo(org.apache.maven.artifact.Artifact dependency) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic final void unpackAttachedNars(List narArtifacts, org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager, String classifier, String os, NarLayout layout, File unpackDir) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.