|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.install.AbstractInstallMojo
Common fields for installation mojos.
Field Summary | |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
protected boolean |
createChecksum
Flag whether to create checksums (MD5, SHA-1) or not. |
protected org.apache.maven.artifact.installer.ArtifactInstaller |
installer
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected org.codehaus.plexus.digest.Digester |
md5Digester
Digester for MD5. |
protected org.codehaus.plexus.digest.Digester |
sha1Digester
Digester for SHA-1. |
protected boolean |
updateReleaseInfo
Whether to update the metadata to make the artifact a release version. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Constructor Summary | |
AbstractInstallMojo()
|
Method Summary | |
protected java.io.File |
getLocalRepoFile(org.apache.maven.artifact.Artifact artifact)
Gets the path of the specified artifact within the local repository. |
protected java.io.File |
getLocalRepoFile(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
Gets the path of the specified artifact metadata within the local repository. |
protected void |
installChecksums(org.apache.maven.artifact.Artifact artifact)
Installs the checksums for the specified artifact (and its metadata files) if this has been enabled in the plugin configuration. |
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 org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.installer.ArtifactInstaller installer
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected boolean createChecksum
protected boolean updateReleaseInfo
protected org.codehaus.plexus.digest.Digester md5Digester
protected org.codehaus.plexus.digest.Digester sha1Digester
Constructor Detail |
public AbstractInstallMojo()
Method Detail |
protected java.io.File getLocalRepoFile(org.apache.maven.artifact.Artifact artifact)
artifact
- The artifact whose local repo path should be determined, must not be null
.
null
.protected java.io.File getLocalRepoFile(org.apache.maven.artifact.metadata.ArtifactMetadata metadata)
metadata
- The artifact metadata whose local repo path should be determined, must not be null
.
null
.protected void installChecksums(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException
ProjectArtifactMetadata
did not install the original POM file (cf. MNG-2820). While the plugin
currently requires Maven 2.0.6, we continue to hash the installed POM for robustness with regard to future
changes like re-introducing some kind of POM filtering.
artifact
- The artifact for which to create checksums, must not be null
.
org.apache.maven.plugin.MojoExecutionException
- If the checksums could not be installed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |