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, setPluginContext
@Parameter protected String outputFileNameMapping
Note: if you use this parameter, then the useTimestampInSnapshotFileName
parameter will be
ignored.
@Parameter(defaultValue="default") protected String repositoryLayout
lib/
style). The style "legacy" is only supported if you are running under Maven 2.2.1 and
before.@Parameter(defaultValue="true") protected boolean useTimestampInSnapshotFileName
@Parameter(defaultValue="${localRepository}", readonly=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter(defaultValue="${project.artifact}", readonly=true) protected org.apache.maven.artifact.Artifact projectArtifact
@Component 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.Contextualizable
org.codehaus.plexus.context.ContextException
protected org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout getArtifactRepositoryLayout() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
protected 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.MojoExecutionException
protected 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.MojoExecutionException
Copyright © 2006–2015 Codehaus. All rights reserved.