|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.appassembler.AbstractAppAssemblerMojo
public abstract class AbstractAppAssemblerMojo
This is intended to summarize all generic parts of the Mojos into a single class. First step of refactoring code.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractAppAssemblerMojo()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
execute |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public AbstractAppAssemblerMojo()
| Method Detail |
|---|
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.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||