public abstract class AbstractAppAssemblerMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory |
artifactRepositoryFactory |
protected org.codehaus.plexus.PlexusContainer |
container
A reference to the Plexus container so that we can do our own component lookups, which was required to solve
MAPPASM-96.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository |
protected String |
outputFileNameMapping
The file name mapping to use when copying libraries to the repository.
|
protected org.apache.maven.artifact.Artifact |
projectArtifact |
protected String |
repositoryLayout
The layout of the generated Maven repository.
|
protected boolean |
useTimestampInSnapshotFileName
For those snapshots downloaded from a remote repo, replace the timestamp part with "SNAPSHOT" instead.
|
| Constructor and Description |
|---|
AbstractAppAssemblerMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextualize(org.codehaus.plexus.context.Context context) |
protected org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout |
getArtifactRepositoryLayout() |
protected void |
installArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository artifactRepository)
Copy artifact to another repository.
|
protected void |
installArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository artifactRepository,
boolean useTimestampInSnapshotFileName)
Copy artifact to another repository, with an option not to use timestamp in the snapshot filename.
|
getLog, getPluginContext, setLog, setPluginContextprotected String outputFileNameMapping
Note: if you use this parameter, then the useTimestampInSnapshotFileName parameter will be
ignored.
protected String repositoryLayout
lib/ style). The style "legacy" is only supported if you are running under Maven 2.2.1 and
before.protected boolean useTimestampInSnapshotFileName
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.artifact.Artifact projectArtifact
protected org.apache.maven.artifact.repository.ArtifactRepositoryFactory artifactRepositoryFactory
protected org.codehaus.plexus.PlexusContainer container
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextExceptionprotected org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout getArtifactRepositoryLayout()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void installArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository artifactRepository,
boolean useTimestampInSnapshotFileName)
throws org.apache.maven.plugin.MojoExecutionException
artifact - The artifact to install.artifactRepository - The repository where to install.useTimestampInSnapshotFileName - Using timestamp for SNAPSHOT's.org.apache.maven.plugin.MojoExecutionExceptionprotected void installArtifact(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository artifactRepository)
throws org.apache.maven.plugin.MojoExecutionException
artifact - artifactRepository - org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2006-2013 Codehaus. All Rights Reserved.